import {ObjectListWithPagination} from "./objectList.tsx";
import {PayrollService} from "../client";
import {Pagination} from "../types/Pagination.ts";


export const usePaymentRecordsList = (pagination: Pagination) => ObjectListWithPagination({
    queryFn: () => PayrollService.getPaymentRecords(pagination),
    queryKey: "getPaymentRecords",
    getObjectsFn: (response) => response.paymentRecords,
    pagination
})