import formatErrorMessage from "../../../../utils/esm/formatErrorMessage.js";
import * as React from "react";
const MenuRadioGroupContext = /* @__PURE__ */ React.createContext(void 0);
if (process.env.NODE_ENV !== "production") MenuRadioGroupContext.displayName = "MenuRadioGroupContext";
function useMenuRadioGroupContext() {
  const context = React.useContext(MenuRadioGroupContext);
  if (context === void 0) {
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>." : formatErrorMessage(34));
  }
  return context;
}
export {
  MenuRadioGroupContext,
  useMenuRadioGroupContext
};
//# sourceMappingURL=MenuRadioGroupContext.js.map
