MCPcopy Create free account
hub / github.com/cursor/community-plugins / handleCopy

Function handleCopy

apps/cursor/src/components/share-button.tsx:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 const [copied, setCopied] = useState(false);
16
17 const handleCopy = () => {
18 navigator.clipboard.writeText(`${window.location.origin}/${slug}`);
19 setCopied(true);
20 toast("URL copied to clipboard");
21
22 setTimeout(() => {
23 setCopied(false);
24 }, 1000);
25 };
26
27 return (
28 <button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected