@hhgtech/hhg-components
Version:
Hello Health Group common components
16 lines (13 loc) • 854 B
JavaScript
import { _ as __rest } from './tslib.es6-107c23d7.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-6ae951d5.js';
import { C as CustomStylesType } from './text-48aef61b.js';
const MantineProvider = (_a) => {
var { children, locale, template = 'hb', customStyleType = CustomStylesType.NONE } = _a, props = __rest(_a, ["children", "locale", "template", "customStyleType"]);
useMantineLocale(locale);
return (React__default.createElement(MantineProvider$1, Object.assign({ theme: getMantineThemeOverride(locale, template, customStyleType) }, props),
children,
React__default.createElement(NotificationsHandler, null)));
};
export { MantineProvider as M };