mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 16:07:47 +00:00
17 lines
378 B
Vue
17 lines
378 B
Vue
<script setup lang="ts">
|
|||
|
|
import type { IconName } from '~/lib/icons'
|
||
|
|
import { getIcon } from '~/lib/icons'
|
||
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||
|
|
|
||
|
|
const props = defineProps<{
|
||
|
|
name: IconName
|
||
|
|
class?: string
|
||
|
|
}>()
|
||
|
|
|
||
|
|
const icon = computed(() => getIcon(props.name))
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<FontAwesomeIcon :icon="icon" :class="props.class" />
|
||
|
|
</template>
|