(locale: string)
| 23 | |
| 24 | export const shortNumber = |
| 25 | (locale: string) => (value: number | null | undefined) => { |
| 26 | if (isNil(value)) { |
| 27 | return 'N/A'; |
| 28 | } |
| 29 | return new Intl.NumberFormat(locale, { |
| 30 | notation: 'compact', |
| 31 | }).format(value); |
| 32 | }; |
| 33 | |
| 34 | export const formatCurrency = |
| 35 | (locale: string) => |