<template>
  <div class="battleground" v-if="battleground">
    <div>Welcome to {{ battleground.name }}</div>
    <router-link to="alteracPass">Go to Alterac Pass</router-link>
    <router-link to="battlefieldOfEternity">Go to Battlefield Of Eternity</router-link>
    <router-link to="/battlegrounds">Back to selector</router-link>
  </div>
</template>

<script>
  import BATTLEGROUNDS from '../gameInfos/maps'

  export default {
    name: 'Battleground',
    data () {
      return {
      }
    },
    computed: {
      battleground () {
        return BATTLEGROUNDS[this.$route.params.battlegroundId]
      }
    },
    watch: {
      $route (to) {
        this.battlegroundId = to.params.battlegroundId
      }
    }
  }
</script>

<style lang="sass">

</style>
