MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / copyMessage

Function copyMessage

src/components/ConversationView/MessageView.tsx:32–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const connection = connectionStore.getConnectionById(conversationStore.getConversationById(message.conversationId)?.connectionId || "");
31
32 const copyMessage = () => {
33 navigator.clipboard.writeText(message.content);
34 toast.success("Copied to clipboard");
35 };
36
37 const deleteMessage = (message: Message) => {
38 messageStore.clearMessage((item) => item.id !== message.id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected