import React from 'react'; import './image-radio.css'; import Iconsvg from '../Icon/Icon'; type OptionsProps = { label: string, value: string | number, icon?:any } type Props = { checked: string, disable?: boolean, iconShow?: boolean, labelShow?: boolean size?: 'default' | 'small' | 'medium' | 'large', handleChange: (e:React.ChangeEvent) => void; } const cardOptions:OptionsProps[] = [ { label: 'Visa', value: 'visa', icon: 'personSolid' }, { label: 'Paypal', value: 'paypal', icon: 'phoneSolid' }, { label: 'Master Card', value: 'masterCard', icon: 'shareSolid' }, { label: 'Maestro', value: 'maestro', icon: 'lockSolid' } ] const ImageRadio = (props:Props) => { const {checked, disable,size,iconShow, labelShow, handleChange} = props; return (
{ cardOptions && cardOptions.map((item)=>( )) }
) } export default ImageRadio;