()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected