<script setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import Toast from 'primevue/toast';
import ConfirmDialog from 'primevue/confirmdialog';
import AppShell from './components/AppShell.vue';

const route = useRoute();
const isPublicPage = computed(() => !!route.meta.public);
</script>

<template>
  <Toast />
  <ConfirmDialog />
  <AppShell v-if="!isPublicPage">
    <router-view />
  </AppShell>
  <router-view v-else />
</template>
