import { getAllCountries } from "@/service/apis/country";
import {useQuery} from "@tanstack/react-query";

export const useGetAllCountries = () =>
  useQuery({
    queryKey: ["get-all-countries"],
    queryFn: ()=> getAllCountries(),
    retry: false,
    refetchOnWindowFocus: false,
  });
