MCPcopy Create free account
hub / github.com/codeaashu/claude-code / selectFooterItem

Function selectFooterItem

src/components/PromptInput/PromptInput.tsx:481–490  ·  view source on GitHub ↗
(item: FooterItem | null)

Source from the content-addressed store, hash-verified

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.

Callers 3

navigateFooterFunction · 0.85
handleHistoryDownFunction · 0.85
PromptInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected