woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/cart/frontend.js

23 lines
381 B
JavaScript

/**
* External dependencies
*/
import { withRestApiHydration } from '@woocommerce/block-hocs';
/**
* Internal dependencies
*/
import Block from './block.js';
import renderFrontend from '../../../utils/render-frontend.js';
const getProps = () => {
return {
attributes: {},
};
};
renderFrontend(
'.wp-block-woocommerce-cart',
withRestApiHydration( Block ),
getProps
);