MCPcopy Create free account
hub / github.com/dailydotdev/apps / getReplacement

Function getReplacement

packages/shared/src/hooks/input/useMarkdownInput.ts:318–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 const onApplyMention = async (mention: UserShortProfile) => {
317 const textareaCommand = getCommand();
318 const getReplacement = () => ({ replacement: `@${mention.username} ` });
319 await textareaCommand.replaceWord(
320 getReplacement,
321 onUpdate,

Callers 1

TextareaCommandClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected