/**
 * Admin app entry point.
 */

import { createRoot } from '@wordpress/element';

import './style.scss';
import Wizard from './components/Wizard';
import HistoryScreen from './components/HistoryScreen';

const wizardContainer = document.getElementById( 'emberprice-app' );

if ( wizardContainer ) {
	createRoot( wizardContainer ).render( <Wizard /> );
}

const historyContainer = document.getElementById( 'emberprice-history-app' );

if ( historyContainer ) {
	createRoot( historyContainer ).render( <HistoryScreen /> );
}
