import React__default from 'react';
import { StoreContext } from 'storeon/react';
import { NotificationsStore } from './NotificationsStore.js';
import { NotificationsPortal } from './NotificationsPortal.js';

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.createElement(StoreContext.Provider, {
    value: NotificationsStore
  }, children, /*#__PURE__*/React__default.createElement(NotificationsPortal, {
    frame: frame,
    placement: placement,
    config: config,
    UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED,
    className: className
  }));
};

export { NotificationsProvider };
