feat: parseAcfLink

This commit is contained in:
2026-01-30 15:43:49 -05:00
parent 98e8d971e8
commit 2cfc1a0047
4 changed files with 21 additions and 26 deletions

View File

@@ -1,9 +1,5 @@
fragment AcfMedia on GroupAbstractMedia_Fields {
image {
node {
...AcfImage
}
}
image { node { ... AcfImage } }
aspectRatio
objectFit
}
}

View File

@@ -1,20 +0,0 @@
<script setup lang="ts">
const { isLoggedIn } = useAuth();
const attrs = computed(() => {
return isLoggedIn.value
? {
label: "Déconnexion",
icon: "i-lucide-log-out",
}
: {
label: "Connexion",
icon: "i-lucide-log-in",
};
});
</script>
<template>
<AuthState>
<UButton to="/connexion" v-bind="attrs" color="neutral" />
</AuthState>
</template>