import React, { CSSProperties } from 'react'; import { TouchableWithoutFeedback, View } from 'react-native'; import { CheckboxIconProps } from '../../core'; import { IconXRadionormal1, IconXRadioselect1, IconXRadiodisable1, IconXRadioselectdisable1, } from '../../icons'; // import { useTheme } from '../Theme'; const RadioIcon: React.FC = ({ active, disabled, onPress, size, style, }) => { // const token = useTheme(); const commonProps = { size, style: style as CSSProperties }; const getIconComponent = () => { if (active) { return !disabled ? ( ) : ( ); } return !disabled ? ( ) : ( ); }; return !disabled ? ( {getIconComponent()} ) : ( getIconComponent() ); }; export default RadioIcon;