<script setup>
import AuthPanel from "@/components/AuthPanel.vue";
import MailWorkspace from "@/components/MailWorkspace.vue";
import { useAuthStore } from "@/stores/auth";

const auth = useAuthStore();
</script>

<template>
  <AuthPanel v-if="!auth.isAuthenticated" />
  <MailWorkspace v-else :key="auth.email" />
</template>
