import { useMemo as m } from "react";
import { getValueByPath as l, parseNumberFromValue as s } from "../utils/formatUtils.js";
const f = (r, t, u = {}) => {
  const { locale: o = "en-GB" } = u;
  return m(() => {
    const a = r.map((e) => {
      const n = l(e, t);
      return s(n, o);
    }).filter((e) => !Number.isNaN(e));
    return a.length > 0 ? Math.min(...a) : 0;
  }, [r, t, o]);
};
export {
  f as default
};
//# sourceMappingURL=useMin.js.map
