import '@/app/globals.css'; import { notFound } from 'next/navigation'; import { NextIntlClientProvider } from 'next-intl'; import type { ILayoutLocaleParams } from '@/models/layout.d'; // export const metadata: Metadata = { // title: 'Create Next App', // description: 'Generated by create next app', // }; export default async function RootLayout({ children, params, }: Readonly<{ children: React.ReactNode; params: ILayoutLocaleParams; }>) { const locale = params.locale; let messages; try { messages = (await import(`../../../messages/${locale}.json`)).default; } catch (error) { notFound(); } return (