import type { SegmentedProps } from 'antd';
import { Segmented as AntSegmented } from 'antd';

type ElementProps = Omit<SegmentedProps, 'options' | 'ref'> & {
  options?: SegmentedProps['options'];
};

export function Segmented({ options = [], ...props }: ElementProps) {
  return <AntSegmented {...props} options={options} />;
}
