feat: version 1.0.0 (#21)

This commit is contained in:
Arash
2023-09-20 19:47:07 +03:00
committed by GitHub
parent 033380e051
commit 431d3784fe
42 changed files with 3654 additions and 3219 deletions

View File

@ -1,10 +1,14 @@
import { useClipboard } from '@vueuse/core'
import { showNotification } from './dialog'
export function useCopy() {
const clipboard = useClipboard()
return (text: string) => {
clipboard.copy(text)
// TODO: show toast
showNotification({
message: 'Copied to clipboard',
icon: 'carbon-copy',
})
}
}