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

const useManagersList = () =>
    ObjectList({
        queryFn: UserService.getManagers,
        getObjectsFn: response => response.managers,
        queryKey: "getManagers",
    });

export default useManagersList;
