36 lines
749 B
TypeScript
36 lines
749 B
TypeScript
|
import type { Metadata } from 'next';
|
||
|
import './globals.css';
|
||
|
import '@mantine/core/styles.css';
|
||
|
import {
|
||
|
createTheme,
|
||
|
ColorSchemeScript,
|
||
|
MantineProvider,
|
||
|
// localStorageColorSchemeManager,
|
||
|
} from '@mantine/core';
|
||
|
|
||
|
export const metadata: Metadata = {
|
||
|
title: 'Create Next App',
|
||
|
description: 'Generated by create next app',
|
||
|
};
|
||
|
|
||
|
const theme = createTheme({});
|
||
|
|
||
|
export default async function RootLayout({
|
||
|
children,
|
||
|
}: Readonly<{
|
||
|
children: React.ReactNode;
|
||
|
}>) {
|
||
|
return (
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<ColorSchemeScript defaultColorScheme="dark" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<MantineProvider theme={theme} defaultColorScheme="dark">
|
||
|
{children}
|
||
|
</MantineProvider>
|
||
|
</body>
|
||
|
</html>
|
||
|
);
|
||
|
}
|