import { Routes, Route } from 'react-router-dom'
import { Layout } from './components'
import { Home, NewRun, Dashboard, Encounters } from './pages'

function App() {
  return (
    <Routes>
      <Route path="/" element={<Layout />}>
        <Route index element={<Home />} />
        <Route path="runs/new" element={<NewRun />} />
        <Route path="dashboard" element={<Dashboard />} />
        <Route path="encounters" element={<Encounters />} />
      </Route>
    </Routes>
  )
}

export default App
