(mention: UserShortProfile)
| 314 | }; |
| 315 | |
| 316 | const onApplyMention = async (mention: UserShortProfile) => { |
| 317 | const textareaCommand = getCommand(); |
| 318 | const getReplacement = () => ({ replacement: `@${mention.username} ` }); |
| 319 | await textareaCommand.replaceWord( |
| 320 | getReplacement, |
| 321 | onUpdate, |
| 322 | CursorType.Adjacent, |
| 323 | ); |
| 324 | updateQuery(undefined); |
| 325 | }; |
| 326 | |
| 327 | const onApplyEmoji = async (emoji: string) => { |
| 328 | const textareaCommand = getCommand(); |
no test coverage detected