MCPcopy Index your code
hub / github.com/winfunc/opcode / toggleExpanded

Function toggleExpanded

src/components/SlashCommandsManager.tsx:228–238  ·  view source on GitHub ↗
(commandId: string)

Source from the content-addressed store, hash-verified

226 };
227
228 const toggleExpanded = (commandId: string) => {
229 setExpandedCommands(prev => {
230 const next = new Set(prev);
231 if (next.has(commandId)) {
232 next.delete(commandId);
233 } else {
234 next.add(commandId);
235 }
236 return next;
237 });
238 };
239
240 const handleToolToggle = (tool: string) => {
241 setCommandForm(prev => ({

Callers 1

SlashCommandsManagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected