<template>
  <div>
    <template v-if="isMobile">
      <header-mobile/>
      <registerEnterprise-mobile/>
      <footer-mobile/>
    </template>
    <template v-else>
      <accountCenter-header/>
      <enterprise-registration/>
    </template>
  </div>
</template>
<script>
  import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  import EnterpriseRegistration from '~components/register/EnterpriseRegistration.vue'
  import { HeaderMobile, FooterMobile } from '~components/mobile'
  import registerEnterpriseMobile from '~components/mobile/registerEnterprise'
  export default {
    layout (context) {
      return context.store.state.option.isMobile ? 'mobile' : 'default'
    },
    components: {
      AccountCenterHeader,
      EnterpriseRegistration,
      registerEnterpriseMobile,
      HeaderMobile,
      FooterMobile
    },
    computed: {
      isMobile () {
        return this.$store.state.option.isMobile
      }
    }
  }
</script>
