feat: setup email content

This commit is contained in:
Shivam Mishra
2024-11-29 16:45:52 +05:30
parent 03389ad773
commit 59481afc2c
@@ -1,16 +1,25 @@
<script setup>
import { computed } from 'vue';
import BaseBubble from 'next/message/bubbles/Base.vue';
defineProps({
const props = defineProps({
content: {
type: String,
required: true,
},
contentAttributes: {
type: Object,
default: () => ({}),
},
});
const contentToShow = computed(() => {
return props.contentAttributes?.email?.htmlContent?.full ?? props.content;
});
</script>
<template>
<BaseBubble class="w-full">
<div class="p-4 prose prose-sm max-w-none" v-html="content" />
<div class="p-4 prose prose-sm max-w-none" v-html="contentToShow" />
</BaseBubble>
</template>