MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / RootLayout

Function RootLayout

apps/baseai.dev/src/app/docs/layout.tsx:37–58  ·  view source on GitHub ↗
({
	children
}: {
	children: React.ReactNode;
})

Source from the content-addressed store, hash-verified

35}
36
37export default async function RootLayout({
38 children
39}: {
40 children: React.ReactNode;
41}) {
42 // let pages = await glob('**/*.mdx', { cwd: './../../../content' });
43 // let allSectionsEntries = (await Promise.all(
44 // pages.map(async filename => [
45 // '/' + filename.replace(/(^|\/)page\.mdx$/, ''),
46 // (await import(`./${filename}`)).sections
47 // ])
48 // )) as Array<[string, Array<Section>]>;
49 let allSections = {}
50
51 return (
52 <div className="flex min-h-full bg-background antialiased">
53 <div className="w-full bg-background">
54 <Layout allSections={allSections}>{children}</Layout>
55 </div>
56 </div>
57 );
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected