import type { Metadata } from "next"; import { DM_Sans } from "next/font/google"; import { headers } from "next/headers"; import "./globals.css"; const dmSans = DM_Sans({ subsets: ["latin"], variable: "--font-sans", display: "swap", }); export const metadata: Metadata = { metadataBase: new URL("https://jp-visser.nl"), }; export default async function RootLayout({ children, }: { children: React.ReactNode; }) { const headersList = await headers(); const lang = headersList.get("x-lang") ?? "nl"; return ( {children} ); }