'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var react = require('storeon/react');
var NotificationsStore = require('./NotificationsStore.js');
var NotificationsPortal = require('./NotificationsPortal.js');

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

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

var NotificationsProvider = function NotificationsProvider(_ref) {
  var children = _ref.children,
    config = _ref.config,
    frame = _ref.frame,
    placement = _ref.placement,
    UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED,
    className = _ref.className;
  return /*#__PURE__*/React__default.default.createElement(react.StoreContext.Provider, {
    value: NotificationsStore.NotificationsStore
  }, children, /*#__PURE__*/React__default.default.createElement(NotificationsPortal.NotificationsPortal, {
    frame: frame,
    placement: placement,
    config: config,
    UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED,
    className: className
  }));
};

exports.NotificationsProvider = NotificationsProvider;
