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