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

25 lines
408 B
JavaScript
Raw Normal View History

/**
* 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: {
isEditor: false,
},
};
};
renderFrontend(
'.wp-block-woocommerce-checkout',
withRestApiHydration( Block ),
getProps
);