export const formatAmount = (amount, currencyCode = "EUR") => { if (typeof amount !== "number") { return "" } const normalizedCurrency = currencyCode.toUpperCase() return new Intl.NumberFormat("fr-FR", { style: "currency", currency: normalizedCurrency, }).format(amount / 100) }