import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import { headers } from "next/headers"; import { getLocale } from "next-intl/server"; import "./globals.css"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: "JMAP Webmail", description: "Minimalist webmail client using JMAP protocol", }; export default async function RootLayout({ children, }: { children: React.ReactNode; }) { const locale = await getLocale(); const nonce = (await headers()).get("x-nonce") ?? ""; return (