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

const useServicePriceCategoriesList = () =>
    ObjectList({
        queryFn: ServiceService.getAllPriceCategories,
        getObjectsFn: response => response.priceCategories,
        queryKey: "getAllPriceCategories",
    });

export default useServicePriceCategoriesList;
