( showFastIcon: boolean, showFastIconHint: boolean, fastModeCooldown: boolean, )
| 2631 | } |
| 2632 | |
| 2633 | function buildBorderText( |
| 2634 | showFastIcon: boolean, |
| 2635 | showFastIconHint: boolean, |
| 2636 | fastModeCooldown: boolean, |
| 2637 | ): BorderTextOptions | undefined { |
| 2638 | if (!showFastIcon) return undefined; |
| 2639 | const fastSeg = showFastIconHint |
| 2640 | ? `${getFastIconString(true, fastModeCooldown)} ${chalk.dim('/fast')}` |
| 2641 | : getFastIconString(true, fastModeCooldown); |
| 2642 | return { |
| 2643 | content: ` ${fastSeg} `, |
| 2644 | position: 'top', |
| 2645 | align: 'end', |
| 2646 | offset: 0, |
| 2647 | }; |
| 2648 | } |
| 2649 | |
| 2650 | export default React.memo(PromptInput); |
no test coverage detected