/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useExpressPaymentMethods } from '@woocommerce/base-hooks'; import { StoreNoticesProvider } from '@woocommerce/base-context'; import Title from '@woocommerce/base-components/title'; /** * Internal dependencies */ import ExpressPaymentMethods from '../express-payment-methods'; import './style.scss'; const CheckoutExpressPayment = () => { const { paymentMethods, isInitialized } = useExpressPaymentMethods(); if ( ! isInitialized || ( isInitialized && Object.keys( paymentMethods ).length === 0 ) ) { return null; } return ( <>
{ __( 'Express checkout', 'woo-gutenberg-products-block' ) }

{ __( 'In a hurry? Use one of our express checkout options below:', 'woo-gutenberg-products-block' ) }

{ __( 'Or continue below', 'woo-gutenberg-products-block' ) }
); }; export default CheckoutExpressPayment;