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