import { NavContainer } from "@/components/nav-container"; import { getLocale, Lang } from "@/i18n/locales"; import { translations } from "@/i18n/translations"; export default async function MdxLayout({ children, params }: { children: React.ReactNode, params: Promise<{ locale: Lang }> }) { const { locale } = await (params); const currentLang = getLocale(locale); const t = translations[currentLang]; return (