import { useQuery } from "@tanstack/react-query";
import { getFavorites } from "../service/Service";

export const useGetFavorites = () => {
  return useQuery({
    queryKey: ["favorites"],
    queryFn: getFavorites,
  });
};
