import * as api from "../service/ReportService";
import { useQuery } from "@tanstack/react-query";

export const useGetReports = (params?: Record<string, string | number>) => {
  return useQuery({
    queryKey: ["reports", params],
    queryFn: () => api.getReports(params),
  });
};
