<template>
  <RouterView />
  <Toaster />
  <CookieBanner />
  <CompleteProfileModal
    v-if="authStore.user"
    :is-open="authStore.showCompleteProfile"
    :user="authStore.user"
    @complete="authStore.onProfileComplete"
  />
</template>

<script setup lang="ts">
import { Toaster } from "vue-sonner";
import { useAuthStore } from "@/stores/auth";
import CompleteProfileModal from "@/components/CompleteProfileModal.vue";
import CookieBanner from "@/components/CookieBanner.vue";

const authStore = useAuthStore();
authStore.init();
</script>
