import formatErrorMessage from "../../../../utils/esm/formatErrorMessage.js";
import * as React from "react";
const PopoverPortalContext = /* @__PURE__ */ React.createContext(void 0);
if (process.env.NODE_ENV !== "production") PopoverPortalContext.displayName = "PopoverPortalContext";
function usePopoverPortalContext() {
  const value = React.useContext(PopoverPortalContext);
  if (value === void 0) {
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : formatErrorMessage(45));
  }
  return value;
}
export {
  PopoverPortalContext,
  usePopoverPortalContext
};
//# sourceMappingURL=PopoverPortalContext.js.map
