2026-05-11 01:08:31 -07:00
|
|
|
import { source } from "@/lib/source";
|
|
|
|
|
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
|
|
|
import type { ReactNode } from "react";
|
|
|
|
|
import { baseOptions } from "@/app/layout.config";
|
2026-06-08 16:14:56 +02:00
|
|
|
import { GitHubStars } from "@/components/github-stars";
|
2026-05-11 01:08:31 -07:00
|
|
|
|
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
|
|
|
return (
|
2026-06-08 16:14:56 +02:00
|
|
|
<DocsLayout
|
|
|
|
|
tree={source.pageTree}
|
|
|
|
|
{...baseOptions}
|
|
|
|
|
sidebar={{
|
|
|
|
|
banner: (
|
|
|
|
|
<div className="flex">
|
|
|
|
|
<GitHubStars />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
>
|
2026-05-11 01:08:31 -07:00
|
|
|
{children}
|
|
|
|
|
</DocsLayout>
|
|
|
|
|
);
|
|
|
|
|
}
|