/** * External dependencies */ import { Notice, ExternalLink } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import classnames from 'classnames'; /** * Internal dependencies */ import './editor.scss'; import { useCompatibilityNotice } from './use-compatibility-notice'; export const CartCheckoutSidebarCompatibilityNotice = ( { block, }: { block: 'cart' | 'checkout'; } ) => { const [ isVisible, dismissNotice ] = useCompatibilityNotice( block ); const noticeText = createInterpolateElement( __( 'The Cart & Checkout Blocks are a beta feature to optimize for faster checkout. To make sure this feature is right for your store, review the list of compatible extensions.', 'woo-gutenberg-products-block' ), { a: ( // Suppress the warning as this will be interpolated into the string with content. // eslint-disable-next-line jsx-a11y/anchor-has-content ), } ); return ( { noticeText } ); };