Entitlement for v8/Deno

This commit is contained in:
Gregory Schier
2024-06-12 00:23:32 -07:00
parent 6c5a914db6
commit 57f01d249e
5 changed files with 19 additions and 13 deletions

View File

@@ -18,11 +18,13 @@ export function useClipboardText() {
const setText = useCallback(
(text: string) => {
writeText(text).catch(console.error);
toast.show({
id: 'copied',
variant: 'copied',
message: 'Copied to clipboard',
});
if (text != '') {
toast.show({
id: 'copied',
variant: 'copied',
message: 'Copied to clipboard',
});
}
setValue(text);
},
[setValue, toast],