import { createRoot } from 'react-dom/client';
import Support from './Support';

/**
 * Render site analytics
 */
document.addEventListener(
	'DOMContentLoaded',
	() => {
		const el = document.getElementById( 'growthstack-support' );
		if ( el ) {
			// const args = JSON.parse( el.dataset.args || '{}' );
			const root = createRoot( el );
			root.render( <Support /> );
		}
	},
	false
);
