import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  { path: '/', name: 'welcome', component: () => import('../views/WelcomeView.vue') },
  { path: '/levels', name: 'levels', component: () => import('../views/LevelSelectView.vue') },
  { path: '/level/:id', name: 'level', component: () => import('../views/LevelView.vue'), props: true },
]

export default createRouter({
  history: createWebHistory(),
  routes,
})
