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

Function Layout

apps/baseai.dev/src/components/Layout.tsx:13–50  ·  view source on GitHub ↗
({
	children,
	allSections
}: {
	children: React.ReactNode;
	allSections: Record<string, Array<Section>>;
})

Source from the content-addressed store, hash-verified

11import BaseAILogo from './baseai-logo';
12
13export function Layout({
14 children,
15 allSections
16}: {
17 children: React.ReactNode;
18 allSections: Record<string, Array<Section>>;
19}) {
20 let pathname = usePathname();
21
22 return (
23 <SectionProvider sections={[]}>
24 <div className="h-full bg-background lg:ml-72 xl:ml-80">
25 <motion.header
26 layoutScroll
27 className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex"
28 >
29 <div className="contents bg-background lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-zinc-900/10 lg:px-6 lg:pb-8 lg:pt-6 xl:w-80 lg:dark:border-white/10">
30 <div className="mt-4 hidden lg:flex">
31 <Link href="/docs" aria-label="Home">
32 <BaseAILogo width="30%" />
33 </Link>
34 </div>
35 <Navigation className="hidden lg:mt-10 lg:block" />
36 </div>
37 </motion.header>
38 <div className="z-1 relative flex flex-col rounded-bl-[calc(var(--radius)+2px)] rounded-tl-[calc(var(--radius)+2px)] bg-background md:mt-5 md:border md:border-r-0 md:border-border md:p-1 md:pr-0">
39 <Header />
40 <div className="prose rounded-bl-lg rounded-tl-lg bg-muted">
41 <main className="flex-auto px-4 md:m-0 md:px-6">
42 {children}
43 </main>
44 <Footer />
45 </div>
46 </div>
47 </div>
48 </SectionProvider>
49 );
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected