(state: FileState, theme: Theme, renderOptions?: RenderOptions | undefined)
| 2462 | } |
| 2463 | |
| 2464 | const renderFileFilter = (state: FileState, theme: Theme, renderOptions?: RenderOptions | undefined) => { |
| 2465 | const filterValue = state.query.length === 0 |
| 2466 | ? renderOptions?.plain === true |
| 2467 | ? FILE_FILTER_PLACEHOLDER |
| 2468 | : Ansi.annotate(theme.colors, FILE_FILTER_PLACEHOLDER, theme.mutedColor) |
| 2469 | : renderOptions?.plain === true |
| 2470 | ? state.query |
| 2471 | : Ansi.annotate(theme.colors, state.query, Ansi.combine(Ansi.underlined, theme.primaryColor)) |
| 2472 | return `[${FILE_FILTER_LABEL}: ${filterValue}]` |
| 2473 | } |
| 2474 | |
| 2475 | const renderFiles = ( |
| 2476 | state: FileState, |
no test coverage detected