mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-03 21:06:40 -05:00
* Fix sidebar tabs pre-rendering * Improve sidebar consistency * improve searchbar alignment * improve animation
27 lines
631 B
TypeScript
27 lines
631 B
TypeScript
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
import type { ReactNode } from "react";
|
|
import { docsOptions } from "../layout.config";
|
|
import ArticleLayout from "@/components/side-bar";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<DocsLayout
|
|
{...docsOptions}
|
|
sidebar={{
|
|
component: (
|
|
<div
|
|
className={cn(
|
|
"[--fd-tocnav-height:36px] md:mr-[268px] lg:mr-[286px] xl:[--fd-toc-width:286px] xl:[--fd-tocnav-height:0px] ",
|
|
)}
|
|
>
|
|
<ArticleLayout />
|
|
</div>
|
|
),
|
|
}}
|
|
>
|
|
{children}
|
|
</DocsLayout>
|
|
);
|
|
}
|