refactor: SiteHeaderTop*
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m2s

This commit is contained in:
2025-09-16 15:00:41 -04:00
parent 8f06c093a8
commit ba42386645
4 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
<script setup lang="ts">
defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
</script>
<template>
<AuthState>
<UButton
:icon="loggedIn ? 'i-lucide-log-out' : 'i-lucide-log-in'"
color="neutral"
to="/connexion"
:label="showLabels ? (loggedIn ? 'Déconnexion' : 'Connexion') : undefined"
/>
</AuthState>
</template>