import { ToggleControl, Icon, Button } from '@wordpress/components'; import { cog } from '@wordpress/icons'; import SettingsBlock from '../SettingsBlock'; import PaymentMethodIcon from '../PaymentMethodIcon'; const PaymentMethodItemBlock = ( { paymentMethod, onTriggerModal, onSelect, isSelected, } ) => { return (
{ paymentMethod?.icon && ( ) } { paymentMethod.itemTitle }

{ paymentMethod.itemDescription }

{ paymentMethod?.fields && onTriggerModal && ( ) }
); }; export default PaymentMethodItemBlock;