/** * External dependencies */ import { createRoot } from '@wordpress/element'; /** * Internal dependencies */ import { RegionPicker } from './region-picker'; import { ShippingCurrencyContext } from './currency-context'; const shippingZoneRegionPickerRoot = document.getElementById( 'wc-shipping-zone-region-picker-root' ); const options = window.shippingZoneMethodsLocalizeScript?.region_options ?? []; const initialValues = window.shippingZoneMethodsLocalizeScript?.locations ?? []; const ShippingApp = () => (
); if ( shippingZoneRegionPickerRoot ) { createRoot( shippingZoneRegionPickerRoot ).render( ); }