import { message } from 'antd'
// 将传进来的文本写入粘贴板
const clipboardWritor = (text: string) => {
  navigator.clipboard.writeText(text).then(() => message.success({ content: '复制成功', duration: 2 }))
}

export default clipboardWritor
