MCPcopy Create free account
hub / github.com/code100x/chess / handleCopy

Function handleCopy

apps/frontend/src/components/ShareGame.tsx:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 const [copied,setCopied] = useState(false);
8
9 const handleCopy = ()=>{
10 window.navigator.clipboard.writeText(url);
11 setCopied((p)=>true);
12 }
13
14 return (
15 <div className={`flex flex-col items-center gap-y-4 ${className}`}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected