<template>
  <RouterView v-if="plainLayout" />
  <ReservationAppShell v-else>
    <RouterView />
  </ReservationAppShell>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { RouterView, useRoute } from 'vue-router'

import ReservationAppShell from '@/layouts/ReservationAppShell.vue'

const route = useRoute()
const plainLayout = computed(() => route.meta.layout === 'plain')
</script>
