import { ReactNode } from "react"; import type { Metadata } from "next"; import { langConfig, type Locale } from "{{LANG_CONFIG_PATH}}"; import "./globals.css"; export const metadata: Metadata = { title: "NextJs", description: "NextJs + next-translator", }; export const generateStaticParams = async () => { return langConfig.locales.map((locale) => ({ lang: locale })); } interface Props { children: ReactNode; params: Promise<{ lang: Locale }>; } export default async function RootLayout(props: Readonly) { const params = await props.params; const { children } = props; return ( {children} ); }