<script setup lang="ts">
defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
const label = computed(() => (loggedIn ? "Espace membre" : "Devenir membre"));
</script>

<template>
  <UButton
    icon="i-lucide-user"
    color="primary"
    to="/espace-membre"
    :label="showLabels ? label : undefined"
  />
</template>
