import { getDefaultInfo, getLanguages } from "@/services/requests";
import { useQuery } from "@tanstack/react-query";


export const useGetLanguages = () => useQuery({
    queryKey:['get-languages'],
    queryFn:getLanguages,
    retry:false,
    refetchOnWindowFocus:false
})

export const useGetDefaultInfo = () =>useQuery({
    queryKey:['get-default-info'],
    queryFn:getDefaultInfo,
    retry:false,
    refetchOnWindowFocus:false,
})