import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'

import { BrowserRouter, Route, Routes } from 'react-router'

import Formulario from './pages/Formulario.jsx'
import Sorteio from './pages/Sorteio.jsx'
import SorteioNumeros from './pages/SorteioNumeros.jsx'
import Lista from './pages/Lista.jsx'
import Banners from './pages/Banners.jsx'
import Home from './pages/Home.jsx'
import Eventos from './pages/Eventos'

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <BrowserRouter>
      <Routes>
        <Route path="/home" element={<Home />} />
        <Route path="/sorteador/banners" element={<Banners />} />
        <Route path="/sorteador/eventos" element={<Eventos />} />
        <Route path="/sorteador/formulario/:id" element={<Formulario />} />
        <Route path="/sorteador/lista/:id" element={<Lista />} />
        <Route path="/sorteador/sorteio/:id" element={<Sorteio />} />
        <Route path="/sorteador/numeros/" element={<SorteioNumeros />} />
      </Routes>
    </BrowserRouter>
  </StrictMode>,
)
