<template>
  <a :href="href" :target="target" class="text inline-flex-row" :class="{ reverse : icon && icon.position === 'end' }">
    <Icon v-if="icon" :name="icon.name" mode="svg" />
    {{ content }}
  </a>
</template>

<script setup lang="ts">
import type { RichTextLink } from './Types'

defineProps<RichTextLink>()
</script>
