(content: string)
| 6 | const { toClipboard } = useClipboard(); |
| 7 | |
| 8 | export async function copyText(content: string) { |
| 9 | try { |
| 10 | await toClipboard(content); |
| 11 | MsgSuccess(i18n.global.t('commons.msg.copySuccess')); |
| 12 | } catch (e) { |
| 13 | MsgError(i18n.global.t('commons.msg.copyFailed')); |
| 14 | } |
| 15 | } |
nothing calls this directly
no test coverage detected