/** * External dependencies */ import { StoreNoticesProvider } from '@woocommerce/base-context'; import { renderFrontend, getAttributesFromDataset, } from '@woocommerce/base-utils'; /** * Internal dependencies */ import Block from './block'; import blockAttributes from './attributes'; /** * Wrapper component to supply the notice provider. * * @param {*} props */ const FrontendBlock = ( props ) => { return ( ); }; const getProps = ( el ) => { return { attributes: getAttributesFromDataset( blockAttributes, el.dataset ), }; }; renderFrontend( { selector: '.wp-block-woocommerce-single-product', Block: FrontendBlock, getProps, } );