2023-04-06 11:16:42 +00:00
/ * *
* External dependencies
* /
import { __ } from '@wordpress/i18n' ;
import { Notice , ExternalLink } from '@wordpress/components' ;
import { ADMIN_URL } from '@woocommerce/settings' ;
/ * *
* Internal dependencies
* /
import './editor.scss' ;
export function NoPaymentMethodsNotice() {
const noticeContent = __ (
'Your store does not have any payment methods that support the Checkout block. Once you have configured a compatible payment method it will be displayed here.' ,
2023-12-12 22:12:36 +00:00
'woocommerce'
2023-04-06 11:16:42 +00:00
) ;
return (
< Notice
className = "wc-blocks-no-payment-methods-notice"
status = { 'warning' }
spokenMessage = { noticeContent }
isDismissible = { false }
>
< div className = "wc-blocks-no-payment-methods-notice__content" >
{ noticeContent } { ' ' }
< ExternalLink
href = { ` ${ ADMIN_URL } admin.php?page=wc-settings&tab=checkout ` }
>
2023-12-12 23:05:20 +00:00
{ __ ( 'Configure Payment Methods' , 'woocommerce' ) }
2023-04-06 11:16:42 +00:00
< / ExternalLink >
< / div >
< / Notice >
) ;
}