import c from "../../../@babel/runtime/helpers/esm/slicedToArray.mjs";
import * as s from "react";
import i from "../../../rc-util/es/hooks/useMergedState.mjs";
var d = Math.random().toFixed(5).toString().slice(2), r = 0;
function v(e) {
  var a = i(e, {
    value: e
  }), t = c(a, 2), o = t[0], u = t[1];
  return s.useEffect(function() {
    r += 1;
    var n = process.env.NODE_ENV === "test" ? "test" : "".concat(d, "-").concat(r);
    u("rc-menu-uuid-".concat(n));
  }, []), o;
}
export {
  v as default
};
