mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:16 +01:00
Change curl import to post-toast
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user