<script>
    import Router from 'svelte-spa-router';
    import Home from './pages/Home.svelte';
    import Join from './pages/Join.svelte';
    import Dashboard from './pages/Dashboard.svelte';
    import Admin from './pages/Admin.svelte';
    import CornerMenu from './components/CornerMenu.svelte';

    const routes = {
        '/': Home,
        '/game/:id/join': Join,
        '/game/:id/player/:pid': Dashboard,
        '/game/:id/admin': Admin,
    };
</script>

<main>
    <Router {routes} />
    <CornerMenu />
</main>
