/** * External dependencies */ import { withRestApiHydration } from '@woocommerce/block-hocs'; import { useStoreCart } from '@woocommerce/base-hooks'; import { RawHTML } from '@wordpress/element'; import LoadingMask from '@woocommerce/base-components/loading-mask'; /** * Internal dependencies */ import FullCart from './full-cart'; import renderFrontend from '../../../utils/render-frontend.js'; /** * Wrapper component to supply API data and show empty cart view as needed. */ const CartFrontend = ( { emptyCart, isShippingCalculatorEnabled, isShippingCostHidden, } ) => { const { cartItems, cartTotals, cartIsLoading, cartErrors, cartCoupons, } = useStoreCart(); return ( <>