import { registerPaymentMethod } from '@woocommerce/blocks-registry'; import { CardFields } from './Components/card-fields'; const config = wc.wcSettings.getSetting( 'ppcp-credit-card-gateway_data' ); const isUserLoggedIn = config?.scriptData?.is_user_logged_in; const axoConfig = wc.wcSettings.getSetting( 'ppcp-axo-gateway_data' ); const axoEnabled = axoConfig !== false; const Label = ( { components } ) => { const { PaymentMethodIcons } = components; return ( <> ); }; registerPaymentMethod( { name: config?.id, label: