MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / onClick

Function onClick

frontend/app/tab/tabbar.tsx:53–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 const hideAiButton = useAtomValue(env.getSettingsKeyAtom("app:hideaibutton"));
52
53 const onClick = () => {
54 const currentVisible = WorkspaceLayoutModel.getInstance().getAIPanelVisible();
55 WorkspaceLayoutModel.getInstance().setAIPanelVisible(!currentVisible);
56 };
57
58 if (hideAiButton) {
59 return null;

Callers 1

useLongClickFunction · 0.50

Calls 3

getAIPanelVisibleMethod · 0.80
setAIPanelVisibleMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected