import React from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { EditModeProvider } from './src/context/EditModeContext';
import { siteContent } from './src/siteContent';
import App from './src/App';

const rootElement = document.getElementById('root');
if (rootElement) {
  const root = createRoot(rootElement);
  root.render(
    <React.StrictMode>
      <BrowserRouter>
        <EditModeProvider initialContent={siteContent}>
          <App />
        </EditModeProvider>
      </BrowserRouter>
    </React.StrictMode>
  );
}

// AI Studio always uses an `index.tsx` file for all project types.
