-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
35 lines (31 loc) · 978 Bytes
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { fontNeueMontreal } from "@utils/app-font";
import CustomCursor from "@app/_components/Cursor";
import { cn } from "@utils/utils";
import AppMetadata from "@utils/app-metadata";
import AppI18nConfig, { LocaleProps } from "@utils/app-i18n-config";
import AppProvider from "@providers/AppProvider";
import "@styles/global.css";
export const generateStaticParams = AppI18nConfig.setLanguagesParams;
export const generateMetadata = () => {
const isLocalMetadata = true;
const m = new AppMetadata(isLocalMetadata)
return m.completeMetadata;
}
interface RootLayoutProps extends LocaleProps {
children: React.ReactNode;
}
export default function RootLayout({
children,
params,
}: RootLayoutProps) {
return (
<html lang={params.lang} suppressHydrationWarning>
<body className={cn("bg-primary", fontNeueMontreal.className)}>
<AppProvider>
<CustomCursor />
{children}
</AppProvider>
</body>
</html>
);
}