MCPcopy Create free account
hub / github.com/GCWing/BitFun / useTabs

Function useTabs

src/web-ui/src/app/hooks/useApp.ts:282–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281// Tab helper hook
282export const useTabs = () => {
283 const { state, openTab, closeTab, selectTab } = useApp();
284
285 return {
286 tabs: state.layout.rightPanelTabs,
287 activeTabId: state.layout.rightPanelActiveTabId,
288 openTab,
289 closeTab,
290 selectTab
291 };
292};

Callers

nothing calls this directly

Calls 1

useAppFunction · 0.85

Tested by

no test coverage detected