"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "NotificationsProvider", {
    enumerable: true,
    get: function() {
        return NotificationsProvider;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
var _react1 = require("storeon/react");
var _NotificationsStore = require("./NotificationsStore");
var _NotificationsPortal = require("./NotificationsPortal");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var NotificationsProvider = function NotificationsProvider(param) {
    var children = param.children, config = param.config, frame = param.frame, placement = param.placement, UNSAFE_SSR_ENABLED = param.UNSAFE_SSR_ENABLED;
    return /*#__PURE__*/ _react.default.createElement(_react1.StoreContext.Provider, {
        value: _NotificationsStore.NotificationsStore
    }, children, /*#__PURE__*/ _react.default.createElement(_NotificationsPortal.NotificationsPortal, {
        frame: frame,
        placement: placement,
        config: config,
        UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
    }));
};
