File size: 362 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import { cookies, headers } from 'next/headers'
export default async function Layout({ children }) {
const curHeaders = await headers()
const curCookies = await cookies()
return (
<>
<p id="headers">{JSON.stringify([...curHeaders.keys()])}</p>
<p id="cookies">{JSON.stringify([...curCookies.getAll()])}</p>
{children}
</>
)
}
|