MCPcopy Create free account
hub / github.com/VGabriel45/SolidityVisualizer / handleClick

Function handleClick

src/components/copy-button.tsx:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 const [copied, setCopied] = useState(false);
18
19 const handleClick = () => {
20 if (!loading) {
21 onClick();
22 setCopied(true);
23 setTimeout(() => setCopied(false), 2000); // Reset after 2 seconds
24 }
25 };
26
27 return (
28 <TooltipProvider>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected