import PaymentMethodModal from '../../../ReusableComponents/PaymentMethodModal'; import { __ } from '@wordpress/i18n'; import { ToggleControl, Button, TextControl } from '@wordpress/components'; import { useState } from '@wordpress/element'; const ModalPayPal = ( { setModalIsVisible } ) => { const [ paypalSettings, setPaypalSettings ] = useState( { checkoutPageTitle: 'PayPal', checkoutPageDescription: 'Pay via PayPal', showLogo: false, } ); const updateFormValue = ( key, value ) => { setPaypalSettings( { ...paypalSettings, [ key ]: value } ); }; return (
updateFormValue( 'checkoutPageTitle', newValue ) } />
updateFormValue( 'checkoutPageDescription', newValue ) } />
); }; export default ModalPayPal;