<script setup lang="ts">
defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
const link = computed(() => (loggedIn.value ? { label: "Espace membre", to: "/espace-membre" } : { label: "Devenir membre", to: "/devenir-membre" }));
</script>

<template>
  <UButton
    icon="i-lucide-user"
    color="primary"
    v-bind="link"
  />
</template>
