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