()
| 1166 | } |
| 1167 | |
| 1168 | const handleCopy = async () => { |
| 1169 | const content = text() |
| 1170 | if (!content) return |
| 1171 | if (await writeClipboard(content)) { |
| 1172 | setState("copied", true) |
| 1173 | setTimeout(() => setState("copied", false), 2000) |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | const revert = () => { |
| 1178 | const act = props.actions?.revert |
no test coverage detected