<template>
  <div class="dashboard-container">
    <senior v-if="$store.getters.version === '18'" />
    <intermediate v-else />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Senior from './components/senior'
import Intermediate from './components/intermediate'

export default {
  name: 'Dashboard',
  components: { Senior, Intermediate },
  data() {
    const year = new Date().getFullYear()
    return {
      year: year
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
