// import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter, Route, Routes } from "react-router";
import Login from './pages/Login.tsx';
import Previewer from './pages/Previewer.tsx';
import NotFound from './pages/NotFound.tsx';
import Home from './pages/Home.tsx';

createRoot(document.getElementById('root')!).render(
  <BrowserRouter basename="/visor3d">
    <Routes>
      <Route path="/" element={<Home />} />
      <Route path="/login" element={<Login />} />
      <Route path="/previewer" element={<Previewer modelUrl="./3d/motor_de_combustion/scene.gltf" />} />
      <Route path="/previewer2" element={<Previewer modelUrl="./3d/raspberry_pi_cam_v2.1/scene.gltf" />} />
      <Route path="*" element={<NotFound />} />
    </Routes>
  </BrowserRouter>,
)
