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