(item: FooterItem | null)
| 479 | const teamsSelected = footerItemSelected === 'teams'; |
| 480 | const bridgeSelected = footerItemSelected === 'bridge'; |
| 481 | function selectFooterItem(item: FooterItem | null): void { |
| 482 | setAppState(prev => prev.footerSelection === item ? prev : { |
| 483 | ...prev, |
| 484 | footerSelection: item |
| 485 | }); |
| 486 | if (item === 'tasks') { |
| 487 | setTeammateFooterIndex(0); |
| 488 | setCoordinatorTaskIndex(minCoordinatorIndex); |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | // delta: +1 = down/right, -1 = up/left. Returns true if nav happened |
| 493 | // (including deselecting at the start), false if at a boundary. |
no outgoing calls
no test coverage detected