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

Function ClaudeInChromeMenu

src/commands/chrome/chrome.tsx:25–262  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

23 isWSL: boolean;
24};
25function ClaudeInChromeMenu(t0) {
26 const $ = _c(41);
27 const {
28 onDone,
29 isExtensionInstalled: installed,
30 configEnabled,
31 isClaudeAISubscriber,
32 isWSL
33 } = t0;
34 const mcpClients = useAppState(_temp);
35 const [selectKey, setSelectKey] = useState(0);
36 const [enabledByDefault, setEnabledByDefault] = useState(configEnabled ?? false);
37 const [showInstallHint, setShowInstallHint] = useState(false);
38 const [isExtensionInstalled, setIsExtensionInstalled] = useState(installed);
39 let t1;
40 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41 t1 = false && isRunningOnHomespace();
42 $[0] = t1;
43 } else {
44 t1 = $[0];
45 }
46 const isHomespace = t1;
47 let t2;
48 if ($[1] !== mcpClients) {
49 t2 = mcpClients.find(_temp2);
50 $[1] = mcpClients;
51 $[2] = t2;
52 } else {
53 t2 = $[2];
54 }
55 const chromeClient = t2;
56 const isConnected = chromeClient?.type === "connected";
57 let t3;
58 if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
59 t3 = function openUrl(url) {
60 if (isHomespace) {
61 openBrowser(url);
62 } else {
63 openInChrome(url);
64 }
65 };
66 $[3] = t3;
67 } else {
68 t3 = $[3];
69 }
70 const openUrl = t3;
71 let t4;
72 if ($[4] !== enabledByDefault) {
73 t4 = function handleAction(action) {
74 bb22: switch (action) {
75 case "install-extension":
76 {
77 setSelectKey(_temp3);
78 setShowInstallHint(true);
79 openUrl(CHROME_EXTENSION_URL);
80 break bb22;
81 }
82 case "reconnect":

Callers

nothing calls this directly

Calls 8

useAppStateFunction · 0.85
isRunningOnHomespaceFunction · 0.85
openBrowserFunction · 0.85
openInChromeFunction · 0.85
saveGlobalConfigFunction · 0.85
onDoneFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected