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