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

Function getCommandIcon

src/components/SlashCommandsManager.tsx:77–84  ·  view source on GitHub ↗
(command: SlashCommand)

Source from the content-addressed store, hash-verified

75
76// Get icon for command based on its properties
77const getCommandIcon = (command: SlashCommand) => {
78 if (command.has_bash_commands) return Terminal;
79 if (command.has_file_references) return FileCode;
80 if (command.accepts_arguments) return Zap;
81 if (command.scope === "project") return FolderOpen;
82 if (command.scope === "user") return Globe;
83 return Command;
84};
85
86/**
87 * SlashCommandsManager component for managing custom slash commands

Callers 1

SlashCommandsManagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected