import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import AdminApp from './AdminApp.tsx'
import './index.css'

// Determine which app to render based on the current path
const isAdminRoute = window.location.pathname.startsWith('/admin');
const AppComponent = isAdminRoute ? AdminApp : App;

createRoot(document.getElementById("root")!).render(<AppComponent />);
