import {StrictMode} from 'react';
import {createRoot} from 'react-dom/client';
import App from './App.tsx';
import { RenderPage } from './pages/RenderPage.tsx';
import './index.css';

// Detect render mode (used by headless Puppeteer renderer)
const isRenderMode = new URLSearchParams(window.location.search).has('renderMode');

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    {isRenderMode ? <RenderPage /> : <App />}
  </StrictMode>,
);
