diff --git a/src/sections/dashboard/hooks/use-profile.tsx b/src/sections/dashboard/hooks/use-profile.tsx deleted file mode 100644 index 3f42b67..0000000 --- a/src/sections/dashboard/hooks/use-profile.tsx +++ /dev/null @@ -1,18 +0,0 @@ -'use client'; - -import useSWR, { Fetcher } from 'swr'; -import { invoke } from '@tauri-apps/api/tauri'; // see https://stackoverflow.com/a/77264549 - -import { ProfileSet } from '@/modules/profiles/profile'; -export const useProfile = () => { - const fetcher: Fetcher = (cmd: string) => - invoke(cmd); - - const { - data: profileSet, - error, - isLoading, - } = useSWR('get_profiles', fetcher); - - return { profileSet, error, isLoading }; -};