()
| 133 | context: 'Confirmation' |
| 134 | }); |
| 135 | const renderMenu = (): React.ReactNode => <Box flexDirection="column" tabIndex={0} autoFocus onKeyDown={handleMenuKeyDown}> |
| 136 | <Text dimColor>Source: {getAgentSourceDisplayName(agent.source)}</Text> |
| 137 | |
| 138 | <Box marginTop={1} flexDirection="column"> |
| 139 | {menuItems.map((item, index_1) => <Text key={item.label} color={index_1 === selectedMenuIndex ? 'suggestion' : undefined}> |
| 140 | {index_1 === selectedMenuIndex ? `${figures.pointer} ` : ' '} |
| 141 | {item.label} |
| 142 | </Text>)} |
| 143 | </Box> |
| 144 | |
| 145 | {error && <Box marginTop={1}> |
| 146 | <Text color="error">{error}</Text> |
| 147 | </Box>} |
| 148 | </Box>; |
| 149 | switch (editMode) { |
| 150 | case 'menu': |
| 151 | return renderMenu(); |
no test coverage detected