<template>
  <div>
    <template v-if="isMobile">
      <validationPhone-stepSelect v-if="step === 'select'" @stepEvent="setStep" @setDataEvent="setInfo"/>
    </template>
    <template v-else>
      <accountCenter-header/>
      <phone-validation/>
    </template>
  </div>
</template>
<script>
  import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  import PhoneValidation from '~components/validation/PhoneValidation.vue'
  import {ValidationPhoneStepSelect} from '~components/mobile/reset'
  export default {
    layout (context) {
      return context.store.state.option.isMobile ? 'mobile' : 'default'
    },
    transition: {
      name: 'fade',
      mode: 'out-in'
    },
    components: {
      AccountCenterHeader,
      PhoneValidation,
      ValidationPhoneStepSelect
    },
    computed: {
      isMobile () {
        return this.$store.state.option.isMobile
      }
    }
  }
</script>
