import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { BrowserRouter, Routes, Route } from 'react-router'
import QuoteDetail from './QuoteDetail.tsx'
import QuoteAdd from './QuoteAdd.tsx'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <BrowserRouter>
      <Routes>
        <Route path='/' element={<App />} />
        <Route path='quote/:quoteId' element={<QuoteDetail />} />
        <Route path='add' element={<QuoteAdd />} />
      </Routes>
    </BrowserRouter>
  </StrictMode>,
)
