MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / RootLayout

Function RootLayout

webapp/src/app/layout.tsx:14–44  ·  view source on GitHub ↗
({
  children,
}: Readonly<{
  children: React.ReactNode;
}>)

Source from the content-addressed store, hash-verified

12};
13
14export default function RootLayout({
15 children,
16}: Readonly<{
17 children: React.ReactNode;
18}>) {
19 return (
20 <html suppressHydrationWarning lang="en" className='h-full'>
21 <body className='flex flex-col bg-stone-200 dark:bg-default-50 h-full'>
22 <Providers>
23 <TopNav />
24 <div className='flex grow overflow-auto'>
25 <aside className='basis-1/6 shrink-0 border-r border-neutral-500 pt-20 sticky top-0 px-6'>
26 <SideMenu />
27 </aside>
28 <main className='flex-1 pt-20 h-full'>
29 {children}
30 </main>
31 <aside className='basis-1/4 shrink-0 px-6 pt-20 bg-stone-300 dark:bg-default-100 sticky top-0'>
32 <div className='flex flex-col gap-6'>
33 <TrendingTags />
34 <TopUsers />
35 </div>
36
37 </aside>
38 </div>
39 </Providers>
40
41 </body>
42 </html>
43 );
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…