'use strict';

var React = require('react');
var jsxRuntime = require('react/jsx-runtime');

const OverlayIdContext = /*#__PURE__*/React.createContext(undefined);
const OverlayIdProvider = ({
  open,
  children
}) => {
  const id = React.useId();
  return /*#__PURE__*/jsxRuntime.jsx(OverlayIdContext.Provider, {
    value: open ? id : undefined,
    children: children
  });
};

exports.OverlayIdContext = OverlayIdContext;
exports.OverlayIdProvider = OverlayIdProvider;
//# sourceMappingURL=OverlayIdProvider.js.map
