| 155 | } |
| 156 | |
| 157 | interface SegmentOptions { |
| 158 | isActive: boolean; |
| 159 | label: string; |
| 160 | } |
| 161 | function renderSegment(value: string, opts: SegmentOptions): string { |
| 162 | const isBlank = !value || value.replace(/_/g, '') === ''; |
| 163 | if (opts.isActive) return styleText('inverse', isBlank ? opts.label : value.replace(/_/g, ' ')); |
nothing calls this directly
no outgoing calls
no test coverage detected