MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / handleCopy

Function handleCopy

src/components/MDXCodeHighlighter/CopyButton.tsx:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 const { isMobile } = useCheckViewport();
18
19 const handleCopy = () => {
20 setCopied(true);
21 setTimeout(() => {
22 setCopied(false);
23 }, 500);
24 };
25
26 return (
27 <CopyToClipboard text={text} onCopy={handleCopy}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected