/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useEmitResponse, useExpressPaymentMethods, } from '@woocommerce/base-hooks'; import { StoreNoticesProvider } from '@woocommerce/base-context'; /** * Internal dependencies */ import ExpressPaymentMethods from '../express-payment-methods'; import './style.scss'; const CartExpressPayment = () => { const { paymentMethods, isInitialized } = useExpressPaymentMethods(); const { noticeContexts } = useEmitResponse(); if ( ! isInitialized || ( isInitialized && Object.keys( paymentMethods ).length === 0 ) ) { return null; } return ( <>