import React, { CSSProperties } from 'react'; import { TouchableWithoutFeedback, View } from 'react-native'; import { IconXCheckboxnormal1, IconXCheckboxselect1, IconXCheckboxdisable1, IconXCheckboxselectdisable1, } from '../../../icons'; import { RenderIconProps } from '@xrnjs/ui'; const CustomerIcon: React.FC = ({ active, disabled, onPress, size, style, }) => { const commonProps = { size, style: style as CSSProperties }; const getIconComponent = () => { if (active) { return !disabled ? ( ) : ( ); } return !disabled ? ( ) : ( ); }; return !disabled ? ( {getIconComponent()} ) : ( getIconComponent() ); }; export default CustomerIcon;