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