MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleCopy

Function handleCopy

web/components/tools/DiffView.tsx:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 const [copied, setCopied] = useState(false);
85
86 const handleCopy = () => {
87 navigator.clipboard.writeText(text).then(() => {
88 setCopied(true);
89 setTimeout(() => setCopied(false), 2000);
90 });
91 };
92
93 return (
94 <button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected