import { MantineProvider } from '@mantine/core';
import { Notifications } from '@mantine/notifications';
import type { ReactNode } from 'react';
import { portalTheme } from '../theme/portalTheme';

export function MantineThemeProvider({ children }: { children: ReactNode }) {
  return (
    <MantineProvider theme={portalTheme} defaultColorScheme="light">
      <Notifications position="top-right" />
      {children}
    </MantineProvider>
  );
}
