import { notFound } from "next/navigation"; import { copy, isLocale } from "@/lib/i18n"; export default async function CmsPage({ params, }: { params: Promise<{ locale: string }>; }) { const resolvedParams = await params; if (!isLocale(resolvedParams.locale)) { notFound(); } const t = copy[resolvedParams.locale]; return (

{t.cmsTitle}

{t.cmsText}

); }