(text: string, command: RunPrompt["command"])
| 183 | } |
| 184 | |
| 185 | function selectedCommand(text: string, command: RunPrompt["command"]) { |
| 186 | if (!command) { |
| 187 | return |
| 188 | } |
| 189 | |
| 190 | const head = slashHead(text) |
| 191 | if (!head || head.name !== command.name) { |
| 192 | return |
| 193 | } |
| 194 | |
| 195 | return { |
| 196 | name: command.name, |
| 197 | arguments: head.arguments, |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | export function RunPromptBody(props: { |
| 202 | theme: () => RunFooterTheme |
no test coverage detected