import { render } from 'preact'

import { Router } from './Router.jsx'

import { HomePage } from './pages/Home.jsx'
import { LoginPage } from './pages/Login.jsx'
import { ProblemPage } from './pages/Problem.jsx'

render(
    <Router
        pages={{
            '/': HomePage,
            '/login': LoginPage,
            '/problem/:id': ProblemPage,
        }}
    />,
    document.body
)
