/** * External dependencies */ import { createRoot } from '@wordpress/element'; /** * Internal dependencies */ import ProductUsageNoticeModal from './modal'; import './style.scss'; const { renewUrl, subscribeUrl, productId, productName, productRegularPrice, dismissAction, dismissNonce, remindLaterAction, remindLaterNonce, colorScheme, subscriptionState, screenId, } = window.wooProductUsageNotice; const container = document.createElement( 'div' ); container.setAttribute( 'id', 'woo-product-usage-notice' ); createRoot( document.body.appendChild( container ) ).render( );