import { useMemo as n } from "react";
import { getValueByPath as c, parseNumberFromValue as l } from "../utils/formatUtils.js";
const B = (e, r, u = {}) => {
  const { locale: o = "en-GB" } = u;
  return n(
    () => e.reduce((t, s) => {
      const m = c(s, r), a = l(m, o);
      return t + a;
    }, 0),
    [e, r, o]
  );
};
export {
  B as default
};
//# sourceMappingURL=useSum.js.map
