()
| 219 | // Note: Mode cycling (shift+tab) is handled via useKeybindings with confirm:cycleMode action |
| 220 | }); |
| 221 | function getMaxIndex(): number { |
| 222 | if (dialogLevel.type === 'teammateList') { |
| 223 | return Math.max(0, teammateStatuses.length - 1); |
| 224 | } |
| 225 | return 0; |
| 226 | } |
| 227 | |
| 228 | // Render based on dialog level |
| 229 | if (dialogLevel.type === 'teammateList') { |