import { useMemo as e } from "react";
function t(r) {
  return new Intl.NumberFormat("en-US").format(r);
}
function u(r) {
  return e(() => {
    if (r)
      return t(r);
  }, [r]);
}
export {
  t as f,
  u
};
