import {PayrollService} from "../../../client";
import ObjectList from "../../../hooks/objectList.tsx";

const usePayRatesList = () => ObjectList({
    queryFn: PayrollService.getAllPayRates,
    getObjectsFn: response => response.payRates,
    queryKey: "getAllPayRates"
})
export default usePayRatesList;