-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
34 lines (31 loc) · 886 Bytes
/
layout.tsx
File metadata and controls
34 lines (31 loc) · 886 Bytes
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
import type { Metadata } from 'next';
import { ThemeProvider } from '@/components/Providers/ThemeProvider/theme-provider';
import { ResetCSS, GlobalCSS } from '@/styles';
import { i18nConfig } from '@/i18n';
export const metadata: Metadata = {
title: 'LeCode',
description:
'LeCode Enterprise specializes in web development and operates as an agency with expertise in React, JavaScript, Node.js, Electron, and Next.js.',
};
export function generateStaticParams() {
return i18nConfig.locales.map((locale) => ({ locale }));
}
export default function RootLayout({
children,
params: { locale },
}: Readonly<{
children: React.ReactNode;
params: { locale: string };
}>) {
return (
<html lang={locale}>
<body>
<ThemeProvider>
<ResetCSS />
<GlobalCSS />
{children}
</ThemeProvider>
</body>
</html>
);
}