2023-03-03 15:54:28 +00:00
|
|
|
<script setup>
|
2024-04-29 09:25:50 +00:00
|
|
|
import { colorsText, colorsBgLight } from '@/colors';
|
2023-03-03 15:54:28 +00:00
|
|
|
import BaseIcon from '@/Components/BaseIcon.vue';
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
icon: {
|
2023-10-31 14:38:43 +00:00
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
w: {
|
|
|
|
type: String,
|
|
|
|
default: 'w-12',
|
|
|
|
},
|
|
|
|
h: {
|
|
|
|
type: String,
|
|
|
|
default: 'h-12',
|
|
|
|
},
|
|
|
|
bg: Boolean,
|
2023-03-03 15:54:28 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<BaseIcon
|
|
|
|
:path="icon"
|
|
|
|
:w="w"
|
|
|
|
:h="h"
|
|
|
|
size="24"
|
|
|
|
class="rounded-full"
|
|
|
|
:class="bg ? colorsBgLight[type] : [colorsText[type], 'bg-gray-50 dark:bg-slate-800']"
|
|
|
|
/>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|