mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 16:07:47 +00:00
feat: change libraly icons
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user