()
| 134 | const [copied, setCopied] = React.useState(false); |
| 135 | |
| 136 | const copyToClipboard = async () => { |
| 137 | try { |
| 138 | await navigator.clipboard.writeText(md); |
| 139 | setCopied(true); |
| 140 | setTimeout(() => setCopied(false), 2000); |
| 141 | } catch (err) { |
| 142 | console.error("Failed to copy to clipboard:", err); |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | const content = ( |
| 147 | <> |
nothing calls this directly
no outgoing calls
no test coverage detected