MCPcopy
hub / github.com/codeaashu/claude-code / handleTabChange

Function handleTabChange

src/components/design-system/Tabs.tsx:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 const registerOptIn = t5;
124 const optedIn = optInCount > 0;
125 const handleTabChange = offset => {
126 const newIndex = (selectedTabIndex + tabs.length + offset) % tabs.length;
127 const newTabId = tabs[newIndex]?.[0];
128 if (isControlled && onTabChange && newTabId) {
129 onTabChange(newTabId);
130 } else {
131 setInternalSelectedTab(newIndex);
132 }
133 setHeaderFocused(true);
134 };
135 const t6 = !hidden && !disableNavigation && headerFocused;
136 let t7;
137 if ($[3] !== t6) {

Callers 1

TabsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected