import React from 'react';
export var PortalContext = /*#__PURE__*/React.createContext(undefined);
export function PortalProvider(_ref) {
  var children = _ref.children,
    container = _ref.container;
  return /*#__PURE__*/React.createElement(PortalContext.Provider, {
    value: container
  }, children);
}
export function usePortalContainer() {
  var container = React.useContext(PortalContext);
  return container;
}
//# sourceMappingURL=PortalProvider.js.map