<template>
  <div class="box">
    <p class="title is-4">Türchen bearbeiten</p>

    <div class="tabs is-centered">
      <ul>
        <li
          v-for="(step, index) in steps"
          :key="'step-' + index"
          :class="current_step === index ? 'is-active' : ''"
          @click="current_step = index"
        >
          <a>{{ step }}</a>
        </li>
      </ul>
    </div>

    <DoorPlacer v-if="current_step === 0" />
  </div>
</template>

<script lang="ts">
import { Vue, Options } from "vue-class-component";
import DoorPlacer from "./door_map/DoorPlacer.vue";

@Options({
  components: {
    DoorPlacer,
  },
})
export default class DoorMapEditor extends Vue {
  private readonly steps: string[] = ["Platzieren", "Ordnen", "Überprüfen"];
  private current_step = 0;
}
</script>
