import React from 'react'; import PopOverContainer from '../PopOverContainer'; import {Icon} from '../icons'; import ListRadios from '../ListRadios'; import {ClassNamesFn, themeable, ThemeProps} from '../../theme'; export interface InputSwitchProps extends ThemeProps { options: Array; disabled?: boolean; value: any; onChange: (value: any) => void; } const option2value = (item: any) => item.value; export function InputSwitch({ options, value, onChange, classnames: cx, disabled }: InputSwitchProps) { return ( ( )} > {({onClick, isOpened, ref}) => (
)}
); } export default themeable(InputSwitch);