import {getSinglePatient,updatePatient} from "@/service/apis/patients";
import {useMutation, useQuery} from "@tanstack/react-query";

export const useGetSinglePatient = (id: string) =>
  useQuery({
    queryKey: ["get-single-patient", id],
    queryFn: () => getSinglePatient(id),
    retry: false,
    refetchOnWindowFocus: false,
  });
export const useUpdatePatient = () => useMutation({mutationFn: updatePatient});
