import n from "../../../../../../../@base-ui_utils@0.2.4_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/formatErrorMessage.js";
import * as o from "react";
const t = /* @__PURE__ */ o.createContext(void 0);
process.env.NODE_ENV !== "production" && (t.displayName = "MenuPortalContext");
function s() {
  const e = o.useContext(t);
  if (e === void 0)
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Portal> is missing." : n(32));
  return e;
}
export {
  t as MenuPortalContext,
  s as useMenuPortalContext
};
