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

@@ -0,0 +1,11 @@
<script setup lang="ts">
import type { AcfPhoneFragment } from "#graphql/types";
defineProps<{ phone: AcfPhoneFragment; link?: boolean }>();
</script>
<template>
<Component :is="link ? 'a' : 'span'" v-if="phone" :href="link ? `tel:${phone.e164}` : undefined">
{{ phone.national }}{{ phone.extension ? ` ext. ${phone.extension}` : "" }}
</Component>
</template>