import formatErrorMessage from "../../../../utils/esm/formatErrorMessage.js";
import * as React from "react";
const NavigationMenuItemContext = /* @__PURE__ */ React.createContext(void 0);
if (process.env.NODE_ENV !== "production") NavigationMenuItemContext.displayName = "NavigationMenuItemContext";
function useNavigationMenuItemContext() {
  const value = React.useContext(NavigationMenuItemContext);
  if (!value) {
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NavigationMenuItem parts must be used within a <NavigationMenu.Item>." : formatErrorMessage(39));
  }
  return value;
}
export {
  NavigationMenuItemContext,
  useNavigationMenuItemContext
};
//# sourceMappingURL=NavigationMenuItemContext.js.map
