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