(text: string)
| 5 | const [copied, setCopied] = React.useState(false); |
| 6 | |
| 7 | async function copy(text: string) { |
| 8 | await navigator.clipboard.writeText(text); |
| 9 | setCopied(true); |
| 10 | setTimeout(() => setCopied(false), 1600); |
| 11 | } |
| 12 | |
| 13 | return [copied, copy]; |
| 14 | } |
no outgoing calls
no test coverage detected