<template>
  <view class="container mx-auto min-h-screen bg-gray-100">
    <Loading v-if="auth.loading" />
    <NetworkError v-else-if="auth.hasError" />
    <view v-else>
      <slot></slot>
    </view>
  </view>
</template>

<script setup lang="ts">
import { useWeAppAuthStore } from '@/common'
import Loading from './Loading.vue'
import NetworkError from './NetworkError.vue'
const auth = useWeAppAuthStore()
</script>
