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

const useAttributesList = () =>
    ObjectList({
        queryFn: AttributeService.getAll,
        getObjectsFn: response => response.attributes,
        queryKey: "getAllAttributes",
    });

export default useAttributesList;
