<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import AppLayout from './components/AppLayout.vue'

const route = useRoute()
const layout = computed(() => route.meta.layout || 'default')
</script>

<template>
  <component :is="layout === 'default' ? AppLayout : 'div'">
    <router-view />
  </component>
</template>

<style scoped>
</style>
