Spaces:
Running
Running
| // Shared utility functions can go here | |
| export const formatCurrency = (value) => { | |
| return new Intl.NumberFormat('en-US', { | |
| style: 'currency', | |
| currency: 'USD' | |
| }).format(value); | |
| }; | |
| export const formatDate = (dateString) => { | |
| const options = { year: 'numeric', month: 'short', day: 'numeric' }; | |
| return new Date(dateString).toLocaleDateString('en-US', options); | |
| }; |