Improve UI

This commit is contained in:
Urtzi Alfaro
2025-12-30 14:40:20 +01:00
parent e494ea8635
commit c07df124fb
71 changed files with 647 additions and 265 deletions

View File

@@ -27,7 +27,15 @@ export const CURRENCY_CONFIG = {
},
} as const;
type CurrencyCode = keyof typeof CURRENCY_CONFIG;
export type CurrencyCode = keyof typeof CURRENCY_CONFIG;
// Default currency for the application (Euro)
export const DEFAULT_CURRENCY: CurrencyCode = 'EUR';
// Get currency symbol
export const getCurrencySymbol = (currencyCode: CurrencyCode = DEFAULT_CURRENCY): string => {
return CURRENCY_CONFIG[currencyCode]?.symbol || '€';
};
// Format currency amount
export const formatCurrency = (