()
| 181 | const [copied, setCopied] = useState(false); |
| 182 | |
| 183 | const copyToClipboard = async () => { |
| 184 | try { |
| 185 | await navigator.clipboard.writeText(command); |
| 186 | setCopied(true); |
| 187 | setTimeout(() => setCopied(false), 2000); |
| 188 | } catch (err) { |
| 189 | console.error('Failed to copy text: ', err); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | return ( |
| 194 | <div |
no outgoing calls
no test coverage detected