MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / handleCopyCode

Function handleCopyCode

desktop/src/renderer/components/CodeBlock.jsx:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 : 'plaintext';
13
14 const handleCopyCode = () => {
15 navigator.clipboard.writeText(code);
16 setShowCheck(true);
17 setTimeout(() => setShowCheck(false), 500);
18 };
19
20 let formattedCode;
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected