(timestamp: number)
| 3 | |
| 4 | // Module-level formatting functions |
| 5 | export const formatDate = (timestamp: number) => { |
| 6 | return new Date(timestamp * 1000).toLocaleDateString('en-US', { |
| 7 | year: 'numeric', |
| 8 | month: 'long', |
| 9 | day: 'numeric', |
| 10 | }); |
| 11 | }; |
| 12 | |
| 13 | export const formatCurrency = (amount: number) => { |
| 14 | return new Intl.NumberFormat('en-US', { |
no outgoing calls
no test coverage detected