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

{ paymentMethod.itemDescription }

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