mirror of
https://github.com/plannotator/effective-html.git
synced 2026-09-19 01:11:19 +08:00
20 lines
472 B
TypeScript
20 lines
472 B
TypeScript
import { source } from "@/lib/source";
|
|
import { baseOptions } from "@/lib/layout.shared";
|
|
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
|
import type { ReactNode } from "react";
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<DocsLayout
|
|
{...baseOptions()}
|
|
tree={source.getPageTree()}
|
|
sidebar={{
|
|
defaultOpenLevel: 1,
|
|
prefetch: false,
|
|
}}
|
|
>
|
|
{children}
|
|
</DocsLayout>
|
|
);
|
|
}
|