import {StrictMode} from 'react';
import {createRoot} from 'react-dom/client';
import App from './App.tsx';
import ReceptionPage from './components/ReceptionPage';
import PublicTalkPage from './components/PublicTalkPage.tsx';
import './index.css';

const isPublicTalkPage = window.location.pathname === '/talk' || window.location.pathname.startsWith('/talk/');

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    {isPublicTalkPage ? <PublicTalkPage /> : window.location.pathname === "/reception" ? <ReceptionPage /> : <App />}
  </StrictMode>,
);
