39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Roboto_Flex } from "next/font/google";
|
|
import "./globals.css";
|
|
import { ThemeProvider } from "@/shared/hooks/theme-provider";
|
|
import { ThemeMessageListener } from "@/shared/hooks/theme-message-listener";
|
|
|
|
const robotoFlex = Roboto_Flex({
|
|
variable: "--font-roboto-flex",
|
|
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
|
|
subsets: ["latin", "cyrillic"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="ru" suppressHydrationWarning>
|
|
<body className={`${robotoFlex.variable} antialiased`}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<ThemeMessageListener />
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|