mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
25 lines
519 B
TypeScript
25 lines
519 B
TypeScript
"use client";
|
|
|
|
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
import type { ReactNode } from "react";
|
|
import { usePageTree } from "./provider";
|
|
|
|
export function DocsShell({ children }: { children: ReactNode }) {
|
|
const tree = usePageTree();
|
|
|
|
return (
|
|
<DocsLayout
|
|
tree={tree}
|
|
nav={{ enabled: false }}
|
|
searchToggle={{ enabled: false }}
|
|
themeSwitch={{ enabled: false }}
|
|
sidebar={{ enabled: false }}
|
|
containerProps={{
|
|
className: "docs-layout",
|
|
}}
|
|
>
|
|
{children}
|
|
</DocsLayout>
|
|
);
|
|
}
|