feat: AcfPhone

This commit is contained in:
2026-03-30 13:59:40 -04:00
parent edb3797f81
commit 1367ee2bb1
5 changed files with 24 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { AcfSocialFragment } from "#graphql/types";
defineProps<{ social?: AcfSocialFragment }>();
defineProps<{ social: AcfSocialFragment }>();
const socialIconNames = {
"facebook.com": "i-cib-facebook-f",
@@ -24,7 +24,7 @@ function getSocialIcon(url: string): string {
</script>
<template>
<ul v-if="social?.profiles.length">
<ul v-if="social.profiles.length">
<li v-for="({ url }, key) in social.profiles" :key="key">
<a :href="url" target="_blank" rel="noopener noreferrer">
<UIcon :name="getSocialIcon(url)" />