import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import Current from './components/Views/Current.vue'
import History from './components/Views/History.vue'
import Year from './components/Views/Year.vue'
import { createMemoryHistory, createRouter } from 'vue-router'

const routes = [
  { path: '/', component: Current },
  { path: '/history', component: History },
  { path: '/year', component: Year },
]

const router = createRouter({
  routes,
  history: createMemoryHistory(),
})

const pinia = createPinia()
const app = createApp(App)

app.use(pinia)
app.use(router)
app.mount('#app')
