1 export const formatAmount = (amount: number, currency_code: string) => {
2 return new Intl.NumberFormat(undefined, {
3 style: "currency",
4 currency: currency_code,
5 }).format(amount);
6 };