refactor: move ATTACHMENT_ICONS to constants

This commit is contained in:
Shivam Mishra
2023-10-10 19:18:34 +05:30
parent 7abe5b01dc
commit c114cc7fa0
2 changed files with 10 additions and 8 deletions
@@ -159,14 +159,7 @@ import alertMixin from 'shared/mixins/alertMixin';
import TimeAgo from 'dashboard/components/ui/TimeAgo.vue';
import CardLabels from './conversationCardComponents/CardLabels.vue';
import PriorityMark from './PriorityMark.vue';
const ATTACHMENT_ICONS = {
image: 'image',
audio: 'headphones-sound-wave',
video: 'video',
file: 'document',
location: 'location',
fallback: 'link',
};
import { ATTACHMENT_ICONS } from 'shared/constants/messages';
export default {
components: {
@@ -146,3 +146,12 @@ export const MESSAGE_VARIABLES = [
key: 'agent.email',
},
];
export const ATTACHMENT_ICONS = {
image: 'image',
audio: 'headphones-sound-wave',
video: 'video',
file: 'document',
location: 'location',
fallback: 'link',
};