first commit
This commit is contained in:
19
app/docs/layout.tsx
Normal file
19
app/docs/layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Sidebar } from "../../components/Sidebar";
|
||||
import { getSidebarStructure } from "../../lib/docs";
|
||||
|
||||
export default function DocsLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const sidebarData = getSidebarStructure();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Sidebar sidebarData={sidebarData} />
|
||||
<main className="doc-main">
|
||||
{children}
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user