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

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Upload',
      component: () => import('@/views/InitialUploadView.vue')
    },
    {
      path: '/help',
      name: 'How can we help you?',
      component: () => import('@/views/HelpView.vue')
    },
    {
      path: '/simulate',
      name: 'Simulate',
      component: () => import('@/views/PlantView.vue')
    },
    {
      path: '/setEnvironment',
      name: 'Set Environment',
      component: () => import('@/views/EnvironmentView.vue')
    },
    {
      path: '/loading',
      name: 'Loading',
      component: () => import('@/views/LoadingView.vue')
    },
    {
      path: '/results',
      name: 'Results',
      component: () => import('@/views/SimulationResultView.vue')
    },
    {
      path: '/cure',
      name: 'Cure Plant',
      component: () => import('@/views/PlantCureView.vue')
    }
  ],
})

export default router
