import React from 'react';
import RecoilRootWrapper from '@app/recoil-root-wrapper';
import Header from '@/components/Header';
import { Inter } from 'next/font/google';
import { Box, MantineProvider } from '@mantine/core';
import { ModalsProvider } from '@mantine/modals';
import { Notifications } from '@mantine/notifications';
import 'styles/globals.css';
import '@mantine/core/styles.css';
import '@mantine/notifications/styles.css';

export const metadata = {
  title: 'Siren',
  description: ''
};

const inter = Inter({ subsets: ['latin'] });

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang='en' className='h-full bg-white'>
      <head>
        <title>Siren</title>
      </head>
      <body className={`${inter.className} wrapper`}>
        <RecoilRootWrapper>
          <MantineProvider>
            <Notifications />
            <ModalsProvider>
              <Header />
              <Box>{children}</Box>
            </ModalsProvider>
          </MantineProvider>
        </RecoilRootWrapper>
      </body>
    </html>
  );
}
