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

Function copyToClipboard

src/components/CodeBlock.tsx:29–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 const showExecuteButton = currentConnectionCtx?.connection && currentConnectionCtx?.database && language.toUpperCase() === "SQL";
28
29 const copyToClipboard = () => {
30 copy(value);
31 toast.success("Copied to clipboard");
32 };
33
34 const handleExecuteQuery = () => {
35 if (!currentConnectionCtx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected