import { reviewsService } from "@/api/services/review.service";
import { queryKeys } from "@/utils/queryKeys";
import { useQuery } from "@tanstack/react-query";


export const useReviews = () => {
  return useQuery({
    queryKey: [...queryKeys.reviews],
    queryFn: () => reviewsService.getReviews(),
  });
};
