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

const useAttributeTypesList = () =>
    ObjectList({
        queryFn: AttributeService.getTypes,
        getObjectsFn: response => response.types,
        queryKey: "getAllAttributeTypes",
    });

export default useAttributeTypesList;
