MCPcopy Create free account
hub / github.com/adobe/react-spectrum / RootLayout

Function RootLayout

examples/next-app-csp/app/layout.tsx:12–23  ·  view source on GitHub ↗
({children}: {children: React.ReactNode})

Source from the content-addressed store, hash-verified

10};
11
12export default async function RootLayout({children}: {children: React.ReactNode}) {
13 const nonce = (await headers()).get('x-nonce');
14 console.log('nonce', nonce);
15 return (
16 <html lang="en">
17 <body>
18 <LocalizedStringProvider locale="en" dictionary={dictionary} nonce={nonce ?? ''} />
19 {children}
20 </body>
21 </html>
22 );
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected