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

const useRolesList = () => ObjectList({
    queryFn: RoleService.getAllRoles,
    getObjectsFn: response => response.roles,
    queryKey: "getAllRoles"
})
export default useRolesList;