import { notFound } from "next/navigation"; import { isLocale, type Locale } from "@/i18n/config"; import { SiteHeader } from "@/components/layout/SiteHeader"; import { SiteFooter } from "@/components/layout/SiteFooter"; /** * Redesign shell. Lives under /[locale]/v2 so the overhaul is built in parallel * without touching the live site (/en is still served from the static mirror via * the rewrite in next.config.mjs). When the redesign reaches parity, we promote * this to the locale root and drop the rewrite. */ export default async function V2Layout({ children, params, }: { children: React.ReactNode; params: Promise<{ locale: string }>; }) { const { locale } = await params; if (!isLocale(locale)) notFound(); const l: Locale = locale; return ( <>
{children}
); }