mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
This pull request introduces a new `ChannelIcon` component and refactors the existing code to use this component, which simplifies the icon management for different channel types and providers.
18 lines
301 B
Vue
18 lines
301 B
Vue
<script setup>
|
|
import { useChannelIcon } from './provider';
|
|
import Icon from 'next/icon/Icon.vue';
|
|
|
|
const props = defineProps({
|
|
inbox: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
});
|
|
|
|
const channelIcon = useChannelIcon(props.inbox);
|
|
</script>
|
|
|
|
<template>
|
|
<Icon :icon="channelIcon" />
|
|
</template>
|