report list
This commit is contained in:
@@ -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),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user