(name: string)
| 115 | |
| 116 | |
| 117 | const handleDelete = async (name: string) => { |
| 118 | if (!confirm(`Delete command "${name}"?`)) return; |
| 119 | |
| 120 | try { |
| 121 | await deleteCommand(name); |
| 122 | toast.success(`Command "${name}" deleted`); |
| 123 | fetchCommands(); |
| 124 | } catch { |
| 125 | toast.error("Failed to delete command"); |
| 126 | } |
| 127 | }; |
| 128 | |
| 129 | const openEdit = (cmd: CommandEntry) => { |
| 130 | setEditingCmd({ |
no test coverage detected