'use strict';

var tslib_es6 = require('./tslib.es6-2c2ed574.js');
var React = require('react');
var core = require('@mantine/core');
var index$1 = require('./index-024542ed.js');
var index = require('./index-59a9827e.js');

function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

const MantineProvider = (_a) => {
    var { children, locale, template = 'hb', isNotifications = true, customStyleType = index.CustomStylesType.NONE } = _a, props = tslib_es6.__rest(_a, ["children", "locale", "template", "isNotifications", "customStyleType"]);
    index$1.useMantineLocale(locale);
    return (React__default["default"].createElement(core.MantineProvider, Object.assign({ theme: index$1.getMantineThemeOverride(locale, template, customStyleType) }, props),
        React__default["default"].createElement(index.TemplateProvider, { variant: customStyleType },
            children,
            isNotifications && React__default["default"].createElement(index$1.NotificationsHandler, null))));
};

exports.MantineProvider = MantineProvider;
