<template>
  <span
    class="option__icon"
    v-if="typeof icon === 'string'"
    v-html="icon"
  ></span>
  <component class="option__icon" v-else :is="icon" :size="16" />
</template>

<script setup lang="ts">
import { type Component } from 'vue';

defineProps<{ icon?: string | Component }>();
</script>
