(command: SlashCommand)
| 75 | |
| 76 | // Get icon for command based on its properties |
| 77 | const 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 |
no outgoing calls
no test coverage detected