mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
23 lines
676 B
TypeScript
23 lines
676 B
TypeScript
import { Banner } from "fumadocs-ui/components/banner";
|
||
import { DocsLayout, type DocsLayoutProps } from "fumadocs-ui/layouts/docs";
|
||
import type { ReactNode } from "react";
|
||
import { baseOptions, links } from "@/app/layout.config";
|
||
import { source } from "@/lib/source";
|
||
|
||
const docsOptions: DocsLayoutProps = {
|
||
...baseOptions,
|
||
tree: source.pageTree,
|
||
links: links.filter((link) => "text" in link && link.text !== "Docs"),
|
||
};
|
||
|
||
export default function Layout({ children }: { children: ReactNode }) {
|
||
return (
|
||
<>
|
||
<Banner variant="rainbow">
|
||
⚠️ WORK IN PROGRESS DONT TAKE REFERENCE!!!
|
||
</Banner>
|
||
<DocsLayout {...docsOptions}>{children}</DocsLayout>
|
||
</>
|
||
);
|
||
}
|