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