import './admin.css';
import { createRoot } from 'react-dom/client';
import { App } from './components/App';
import { ProductWaitlistPanel } from './components/ProductWaitlistPanel';

const dashboard = document.getElementById('stockbeacon-admin-root');
if (dashboard) {
	createRoot(dashboard).render(<App />);
}

const productWaitlist = document.getElementById('stockbeacon-product-waitlist-root');
if (productWaitlist) {
	createRoot(productWaitlist).render(<ProductWaitlistPanel />);
}
