MCPcopy Create free account
hub / github.com/cursor/community-plugins / RootLayout

Function RootLayout

apps/cursor/src/app/layout.tsx:58–97  ·  view source on GitHub ↗
({
  children,
}: Readonly<{
  children: React.ReactNode;
}>)

Source from the content-addressed store, hash-verified

56};
57
58export default async function RootLayout({
59 children,
60}: Readonly<{
61 children: React.ReactNode;
62}>) {
63 return (
64 <html
65 lang="en"
66 suppressHydrationWarning
67 className={cn(
68 `${cursorGothic.variable}`,
69 "whitespace-pre-line antialiased",
70 )}
71 >
72 <body className="bg-background text-foreground">
73 <ThemeProvider
74 attribute="class"
75 defaultTheme="system"
76 enableSystem
77 disableTransitionOnChange
78 >
79 <NuqsAdapter>
80 {/* Reads the pathname (runtime data); renders nothing visual. */}
81 <Suspense fallback={null}>
82 <ScrollToTop />
83 </Suspense>
84 <Header />
85 {children}
86 <JoinCTA />
87 <Footer />
88
89 <Toaster />
90 <GlobalModals />
91 </NuqsAdapter>
92 </ThemeProvider>
93 <Analytics />
94 </body>
95 </html>
96 );
97}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected