/** * External dependencies */ import { __ } from '@wordpress/i18n'; export const ModalContent = ( { blockType = 'woocommerce/cart', }: { blockType: 'woocommerce/cart' | 'woocommerce/checkout'; } ): JSX.Element => { if ( blockType === 'woocommerce/cart' ) { return (

{ __( 'If you continue, the cart block will be replaced with the classic experience powered by shortcodes. This means that you may lose customizations that you made to the cart block.', 'woocommerce' ) }

); } return ( <>

{ __( 'If you continue, the checkout block will be replaced with the classic experience powered by shortcodes. This means that you may lose:', 'woocommerce' ) }

); };