` in the editor. Otherwise,
* if the user saves the page without having triggered the 'Empty Cart'
* view, inner blocks would not be saved and they wouldn't be visible
* in the frontend.
*/
const CartEditor = ( { className, attributes, setAttributes } ) => {
if ( attributes.isPreview ) {
return cartBlockPreview;
}
return (
(
{ currentView === 'full' && (
<>
>
) }
{ currentView === 'empty' && }
) }
/>
);
};
CartEditor.propTypes = {
className: PropTypes.string,
};
export default CartEditor;