import { FC } from "react";
import BaseSegmentedControl, {
    BaseSegmentedControlProps,
} from "@/components/ui/BaseSegmentedControl/BaseSegmentedControl";
import { ServiceType } from "@/modules/dealModularEditorTabs/FulfillmentBase/shared/types/service";

type Props = Omit<BaseSegmentedControlProps<ServiceType>, "data">;

const data = [
    {
        label: "Для сделки",
        value: ServiceType.DEAL_SERVICE,
    },
    {
        label: "Для товара",
        value: ServiceType.PRODUCT_SERVICE,
    },
];

const ServiceTypeSegmentedControl: FC<Props> = props => (
    <BaseSegmentedControl
        data={data}
        {...props}
    />
);

export default ServiceTypeSegmentedControl;
