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

const useModulesList = () =>
    ObjectList({
        queryFn: ProjectService.getAllModules,
        getObjectsFn: response => response.modules,
        queryKey: "getAllModules",
    });

export default useModulesList;
