(d: MaintainForecast['direction'])
| 22 | } |
| 23 | |
| 24 | const dirWord = (d: MaintainForecast['direction']): string => |
| 25 | d === 'rising' ? 'rising ↑' : d === 'falling' ? 'cooling ↓' : 'steady →'; |
| 26 | |
| 27 | function sparkline(trend: number[]): string { |
| 28 | const max = Math.max(1, ...trend); |
no outgoing calls
no test coverage detected