<template>
  <div>
    <template v-if="isMobile">
      <header-mobile/>
      <login-mobile/>
    </template>
    <template v-else>
      <login/>
    </template>
  </div>
</template>
<script>
  import {Login} from '~components/login'
  import {LoginMobile, HeaderMobile} from '~components/mobile'
  export default {
    layout (context) {
      return context.store.state.option.isMobile ? 'mobile' : 'loginDefault'
    },
    components: {
      Login,
      LoginMobile,
      HeaderMobile
    },
    computed: {
      isMobile () {
        return this.$store.state.option.isMobile
      }
    }
  }
</script>
