mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
17 lines
583 B
TypeScript
17 lines
583 B
TypeScript
import { MantineProvider, mergeThemeOverrides } from '@mantine/core';
|
|
import { Notifications } from '@mantine/notifications';
|
|
import { emaTheme } from '@ema-platform/shared';
|
|
import { maritimeLoaderTheme } from '@ema-platform/ui';
|
|
import type { ReactNode } from 'react';
|
|
|
|
const theme = mergeThemeOverrides(emaTheme, maritimeLoaderTheme);
|
|
|
|
export function MantineThemeProvider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<MantineProvider theme={theme} defaultColorScheme="light">
|
|
<Notifications position="top-right" />
|
|
{children}
|
|
</MantineProvider>
|
|
);
|
|
}
|