export function formatCurrency(price: number | bigint, locale: string = 'en-US', currency: string = 'CZK'): string { const currencyFormatter = new Intl.NumberFormat(locale, { style: 'currency', currency: currency, maximumFractionDigits: 0, }); return currencyFormatter.format(price).replace(',', ' ') }