import { FC } from "react";
import ObjectSelect, {
    ObjectSelectProps,
} from "@/components/selects/ObjectSelect/ObjectSelect";
import { ServicesKitSchema } from "@/lib/client";
import useServicesKitsList from "@/modules/dealModularEditorTabs/FulfillmentBase/shared/hooks/lists/useServicesKitsList";

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

const ServicesKitSelect: FC<Props> = props => {
    const { servicesKits } = useServicesKitsList();

    return (
        <ObjectSelect
            label={"Набор услуг"}
            placeholder={"Выберите набор услуг"}
            data={servicesKits}
            {...props}
        />
    );
};

export default ServicesKitSelect;
