/**
 * Admin SPA entry: mounts <App /> into the #rbfb-admin node rendered by
 * AdminMenu::render().
 */
import { createRoot } from '@wordpress/element';
import domReady from '@wordpress/dom-ready';

import App from './App';
import './admin.scss';

domReady( () => {
	const node = document.getElementById( 'rbfb-admin' );

	if ( node ) {
		createRoot( node ).render( <App /> );
	}
} );
