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