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

const usePayrollSchemasList = () => ObjectList({
    queryFn: PayrollService.getAllPayrollSchemas,
    getObjectsFn: (response) => response.payrollSchemas,
    queryKey: "getAllPayrollSchemas"
})
export default usePayrollSchemasList;