import { FC } from "react";
import BaseSegmentedControl, {
    BaseSegmentedControlProps,
} from "@/components/ui/BaseSegmentedControl/BaseSegmentedControl";

export enum ServicePriceType {
    DEFAULT,
    BY_RANGE,
}

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

const ServicePriceTypeSegmentedControl: FC<Props> = props => {
    const data = [
        {
            label: "По умолчанию",
            value: ServicePriceType.DEFAULT,
        },
        {
            label: "По диапазону",
            value: ServicePriceType.BY_RANGE,
        },
    ];

    return (
        <BaseSegmentedControl
            data={data}
            {...props}
        />
    );
};

export default ServicePriceTypeSegmentedControl;
