import { SeoScripts } from "@/components/pages/home/seo-scripts";
import { assertIsPathLocale } from "@/lib/locale";
import type { ReactNode } from "react";

export default async function Layout({
  params,
  children,
}: {
  params: Promise<{ lang: string }>;
  children: ReactNode;
}) {
  const { lang } = await params;

  assertIsPathLocale(lang);

  return (
    <>
      {children}
      <SeoScripts locale={lang} />
    </>
  );
}

export { generateStaticParams } from "@/components/pages/localed-pages";
export const dynamicParams = false;
