report list

This commit is contained in:
hamid zarghami
2025-12-14 10:36:56 +03:30
parent 0ac4b0b1ab
commit 6f00af1d60
10 changed files with 297 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
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),
});
};