import i from "../../../@babel/runtime/helpers/esm/slicedToArray.mjs";
import * as o from "react";
import { warningOnce as f } from "../../../rc-util/es/warning.mjs";
function m(e, r) {
  return o.useMemo(function() {
    return e || (r ? (f(!1, "`ranges` is deprecated. Please use `presets` instead."), Object.entries(r).map(function(n) {
      var t = i(n, 2), u = t[0], a = t[1];
      return {
        label: u,
        value: a
      };
    })) : []);
  }, [e, r]);
}
export {
  m as default
};
