@hhgtech/hhg-components
Version:
Hello Health Group common components
16 lines (13 loc) • 916 B
JavaScript
import { _ as __rest } from './tslib.es6-7984ef17.js';
import React__default from 'react';
import { MantineProvider as MantineProvider$1 } from '@mantine/core';
import { u as useMantineLocale, g as getMantineThemeOverride, N as NotificationsHandler } from './index-87c5a102.js';
import { C as CustomStylesType } from './text-908bab85.js';
const MantineProvider = (_a) => {
var { children, locale, template = 'hb', isNotifications = true, customStyleType = CustomStylesType.NONE } = _a, props = __rest(_a, ["children", "locale", "template", "isNotifications", "customStyleType"]);
useMantineLocale(locale);
return (React__default.createElement(MantineProvider$1, Object.assign({ theme: getMantineThemeOverride(locale, template, customStyleType) }, props),
children,
isNotifications && React__default.createElement(NotificationsHandler, null)));
};
export { MantineProvider as M };