import { ToggleControl } from '@wordpress/components'; import SettingsBlock from './SettingsBlock'; import PaymentMethodIcon from '../PaymentMethodIcon'; import data from '../../../utils/data'; const PaymentMethodItemBlock = ( { paymentMethod, onTriggerModal, onSelect, isSelected, } ) => { return (
{ paymentMethod.itemTitle }

{ paymentMethod.itemDescription }

{ paymentMethod?.fields && onTriggerModal && (
{ data().getImage( 'icon-settings.svg' ) }
) }
); }; export default PaymentMethodItemBlock;