| 76 | ) |
| 77 | |
| 78 | const inputGuide = (exitState: { pending: boolean; keyName: string }) => |
| 79 | exitState.pending ? ( |
| 80 | <Text>Press {exitState.keyName} again to exit</Text> |
| 81 | ) : ( |
| 82 | <Byline> |
| 83 | <KeyboardShortcutHint shortcut="←" action="go back" /> |
| 84 | <KeyboardShortcutHint shortcut="Esc/Enter/Space" action="close" /> |
| 85 | {workflow.status === 'running' && onKill && ( |
| 86 | <KeyboardShortcutHint shortcut="x" action="stop" /> |
| 87 | )} |
| 88 | </Byline> |
| 89 | ) |
| 90 | |
| 91 | return ( |
| 92 | <Box flexDirection="column" tabIndex={0} autoFocus onKeyDown={handleKeyDown}> |