mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-11-09 23:13:01 +01:00
13 lines
337 B
TypeScript
13 lines
337 B
TypeScript
const { isSupported } = useClipboard();
|
|
const clipboardWirtePermission = usePermission('clipboard-write');
|
|
|
|
const canCopyToClipboard = computed(
|
|
() => isSupported.value && clipboardWirtePermission.value === 'granted'
|
|
);
|
|
|
|
export const useCanCopyToClipboard = () => ({
|
|
isSupported,
|
|
clipboardWirtePermission,
|
|
canCopyToClipboard
|
|
});
|