<template>
  <UApp>
    <AdminLoadingOverlay />
    <Header v-if="!isAdminPage" />
    <NuxtLayout>
      <NuxtPage />
    </NuxtLayout>
    <Footer v-if="!isAdminPage" />
  </UApp>
</template>

<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()

// admin 페이지 체크
const isAdminPage = computed(() => {
  return route.path.startsWith('/admin')
})
</script>
<style setup>
  @import "tailwindcss";
  @import "@nuxt/ui";
</style>