Files
headless-2026-03/wp-content/themes/headless/app/components/acf/AcfPhone.vue
2026-03-30 13:59:40 -04:00

12 lines
371 B
Vue

<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>