<template>
  <div class="app-container home">
    <Dashboard v-if="!merchantId || shopState === '002'" />
    <MerchantForm v-else :merchantId="merchantId"/>
  </div>
</template>

<script>
import Dashboard from '@/views/dashboard'
import MerchantForm from '@/views/merchant/info/components/MerchantForm'
import { mapGetters } from 'vuex'

export default {
  name: "Index",
  components: {Dashboard, MerchantForm},
  computed: {
    ...mapGetters(['merchantId', 'shopState']),
  }
}
</script>