Files
create-better-t-stack/apps/web/src/app/docs/layout.tsx
2025-07-29 11:30:10 +05:30

23 lines
676 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
</>
);
}