import c from "../../../@babel/runtime/helpers/esm/slicedToArray.mjs";
import * as r from "react";
import u from "../../../rc-util/es/Dom/canUseDom.mjs";
var s = 0, i = process.env.NODE_ENV !== "test" && u();
function f() {
  var e;
  return i ? (e = s, s += 1) : e = "TEST_OR_SSR", e;
}
const m = function(e) {
  var n = r.useState(), t = c(n, 2), o = t[0], a = t[1];
  return r.useEffect(function() {
    a("rc_progress_".concat(f()));
  }, []), e || o;
};
export {
  m as default,
  i as isBrowserClient
};
