<script setup lang="ts">
definePageMeta({ layout: "auth" });

const { isLoggedIn } = useAuth();
useSeoMeta({ title: isLoggedIn.value ? "Déconnexion" : "Connexion" });
</script>

<template>
  <AuthState>
    <LogoutForm v-if="isLoggedIn" />
    <LoginForm v-else />
  </AuthState>
</template>
