(ratio: number)
| 18 | }; |
| 19 | |
| 20 | export const getContextTone = (ratio: number): 'danger' | 'safe' | 'warn' => { |
| 21 | if (ratio >= 0.9) { |
| 22 | return 'danger'; |
| 23 | } |
| 24 | |
| 25 | if (ratio >= 0.7) { |
| 26 | return 'warn'; |
| 27 | } |
| 28 | |
| 29 | return 'safe'; |
| 30 | }; |
| 31 | |
| 32 | const formatCount = (value: number): string => value.toLocaleString('en-US'); |
| 33 |
no outgoing calls
no test coverage detected