chore: init mandine config

This commit is contained in:
Sonny
2024-10-31 01:18:37 +01:00
committed by Sonny
parent 05c867f44f
commit 71ce65e2aa
7 changed files with 436 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
import { ColorSchemeScript, createTheme, MantineProvider } from '@mantine/core';
import dayjs from 'dayjs';
import { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
import '@mantine/core/styles.css';
import '@mantine/spotlight/styles.css';
const theme = createTheme({});
export default function BaseLayout({ children }: { children: ReactNode }) {
const { i18n } = useTranslation();
dayjs.locale(i18n.language);
return (
<>
<ColorSchemeScript />
<MantineProvider theme={theme}>{children}</MantineProvider>
</>
);
}