import QwilightView from "@/components/QwilightView"; import { Stores } from "@/store/Stores"; import { NextIntlClientProvider } from "next-intl"; import { getMessages } from "next-intl/server"; import { ReactNode } from "react"; import "bootstrap/dist/css/bootstrap.min.css"; import "react-contexify/dist/ReactContexify.css"; import "react-toastify/dist/ReactToastify.css"; import "@/app/globals.scss"; export default async function Layout({ children, params: { language }, }: { children: ReactNode; params: { language: string }; }) { return ( <html lang={language}> <head> <title>Qwilight</title> </head> <body> <NextIntlClientProvider locale={language} messages={await getMessages({ locale: language })} > <Stores> <QwilightView>{children}</QwilightView> </Stores> </NextIntlClientProvider> </body> </html> ); }