import { BrowserRouter, Routes, Route } from 'react-router-dom'
import { KlausurProvider } from './hooks/useKlausur'
import Layout from './components/Layout'
import OnboardingPage from './pages/OnboardingPage'
import KorrekturPage from './pages/KorrekturPage'

function App() {
  return (
    <BrowserRouter>
      <KlausurProvider>
        <Layout>
          <Routes>
            <Route path="/" element={<OnboardingPage />} />
            <Route path="/korrektur" element={<KorrekturPage />} />
            <Route path="/korrektur/:klausurId" element={<KorrekturPage />} />
          </Routes>
        </Layout>
      </KlausurProvider>
    </BrowserRouter>
  )
}

export default App
