(changePercent?: number)
| 104 | }; |
| 105 | |
| 106 | export const getChangeColorClass = (changePercent?: number) => { |
| 107 | if (!changePercent) return 'text-gray-400'; |
| 108 | return changePercent > 0 ? 'text-green-500' : 'text-red-500'; |
| 109 | }; |
| 110 | |
| 111 | export const formatPrice = (price: number) => { |
| 112 | return new Intl.NumberFormat('en-US', { |