//@ts-ignore
import { render } from '@wordpress/element';
import { Suspense } from 'react';
import App from './screens/App';

const root = document.getElementById('zetta-erp-root');

if (root) {
	render(
		<Suspense
			fallback={
				<div className='flex items-center justify-center w-full my-5 min-h-[30rem]'>
					Loading
				</div>
			}
		>
			<App />
		</Suspense>,
		root
	);
}
