(value: number)
| 44 | }; |
| 45 | |
| 46 | export const formatLargeNumber = (value: number): string => { |
| 47 | if (value.toString().length <= 6) { |
| 48 | return new Intl.NumberFormat("en-US").format(value); |
| 49 | } |
| 50 | return new Intl.NumberFormat("en-US", { |
| 51 | maximumFractionDigits: 1, |
| 52 | notation: "compact", |
| 53 | }).format(value); |
| 54 | }; |
| 55 | |
| 56 | export const formatAmount = (value: number | string): string => { |
| 57 | return new Intl.NumberFormat("en-US").format(+value); |
nothing calls this directly
no outgoing calls
no test coverage detected