Change curl import to post-toast

This commit is contained in:
Gregory Schier
2024-05-10 13:06:40 -07:00
parent 582da26574
commit fd6ad952fe
3 changed files with 107 additions and 98 deletions

View File

@@ -4,10 +4,6 @@ import { readText } from '@tauri-apps/plugin-clipboard-manager';
export function useClipboardText() {
return useQuery({
queryKey: [],
queryFn: async () => {
const text = await readText();
console.log('READ CLIPBOARD', text);
return text;
},
queryFn: () => readText(),
}).data;
}