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

Function onSelect

src/components/ClaudeCodeHint/PluginHintMenu.tsx:26–37  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

24 return () => clearTimeout(timeoutId);
25 }, []);
26 function onSelect(value: string): void {
27 switch (value) {
28 case 'yes':
29 onResponse('yes');
30 break;
31 case 'disable':
32 onResponse('disable');
33 break;
34 default:
35 onResponse('no');
36 }
37 }
38 const options = [{
39 label: <Text>
40 Yes, install <Text bold>{pluginName}</Text>

Callers 15

ResumeTaskFunction · 0.50
SessionPreviewFunction · 0.50
ModelPickerFunction · 0.50
ThinkingToggleFunction · 0.50
LogSelectorFunction · 0.50
handleKeyDownFunction · 0.50
MemoryFileSelectorFunction · 0.50
TreeSelectFunction · 0.50
SelectHookModeFunction · 0.50
SelectMatcherModeFunction · 0.50

Calls 1

onResponseFunction · 0.50

Tested by

no test coverage detected