mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-11-14 17:23:02 +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
|
||
|
});
|