mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
23 lines
604 B
Vue
23 lines
604 B
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { messageTimestamp } from 'shared/helpers/timeHelper';
|
|
import BaseBubble from './Base.vue';
|
|
import { useMessageContext } from '../provider.js';
|
|
|
|
const { content, createdAt } = useMessageContext();
|
|
|
|
const readableTime = computed(() =>
|
|
messageTimestamp(createdAt.value, 'LLL d, h:mm a')
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<BaseBubble
|
|
v-tooltip.top="readableTime"
|
|
class="px-2 py-0.5 !rounded-full flex min-w-0 items-center gap-2"
|
|
data-bubble-name="activity"
|
|
>
|
|
<span v-dompurify-html="content" :title="content" />
|
|
</BaseBubble>
|
|
</template>
|