import ObjectSelect, {
    ObjectSelectProps,
} from "../../ObjectSelect/ObjectSelect.tsx";
import { ServicePriceCategorySchema } from "../../../client";
import useServicePriceCategoriesList from "../../../pages/ServicesPage/hooks/useServicePriceCategoriesList.tsx";

type Props = Omit<ObjectSelectProps<ServicePriceCategorySchema>, "data">;

const ServicePriceCategorySelect = (props: Props) => {
    const { objects } = useServicePriceCategoriesList();
    return (
        <ObjectSelect
            {...props}
            data={objects}
        />
    );
};

export default ServicePriceCategorySelect;
