<template>
  <uv-parse v-if="!message.messageType||message.messageType===MessageType.text" :content="ChatUtils.transformXss(message.content)"></uv-parse>
</template>

<script setup lang="ts">
import MessageType from "@/utils/MessageType";
import ChatUtils from "@/utils/ChatUtils";
import type Message from "@/mode/Message";
import UvParse from "@/uni_modules/uv-parse/components/uv-parse/uv-parse.vue";

interface Props<T> {
  message: T
}

defineProps<Props<Message>>()

</script>

<style scoped></style>
