2023-10-19 15:43:43 +00:00
/ * *
* External dependencies
* /
import { __ } from '@wordpress/i18n' ;
export const ModalContent = ( {
blockType = 'woocommerce/cart' ,
} : {
blockType : 'woocommerce/cart' | 'woocommerce/checkout' ;
} ) : JSX . Element = > {
if ( blockType === 'woocommerce/cart' ) {
return (
< p >
{ __ (
2023-11-20 12:36:49 +00:00
'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.' ,
2023-12-12 22:12:36 +00:00
'woocommerce'
2023-10-19 15:43:43 +00:00
) }
< / p >
) ;
}
return (
< >
< p >
{ __ (
2023-11-20 12:36:49 +00:00
'If you continue, the checkout block will be replaced with the classic experience powered by shortcodes. This means that you may lose:' ,
2023-12-12 22:12:36 +00:00
'woocommerce'
2023-10-19 15:43:43 +00:00
) }
< / p >
< ul className = "cross-list" >
< li >
{ __ (
'Customizations and updates to the block' ,
2023-12-12 22:12:36 +00:00
'woocommerce'
2023-10-19 15:43:43 +00:00
) }
< / li >
< li >
{ __ (
'Additional local pickup options created for the new checkout' ,
2023-12-12 22:12:36 +00:00
'woocommerce'
2023-10-19 15:43:43 +00:00
) }
< / li >
< / ul >
< / >
) ;
} ;