<script lang="ts" setup>
import type { FactorApp } from '@factor/api'
import { useService, vue } from '@factor/api'

const { factorApp } = useService<{ factorApp: FactorApp }>()

const el = vue.computed(() => {
  return factorApp?.ui.icon
})
</script>

<template>
  <component :is="el" v-if="el" />
</template>
