feat: switch to using MessageProps interface in Message component

This commit is contained in:
SauceyRed 2025-07-11 00:04:18 +02:00
parent 4f4063fa88
commit 64b10b48aa
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -31,19 +31,9 @@
<script lang="ts" setup>
import DOMPurify from 'dompurify';
import { parse } from 'marked';
import type { MessageProps } from '~/types/props';
const props = defineProps<{
class?: string,
img?: string | null,
username: string,
text: string,
timestamp: number,
format: "12" | "24",
type: "normal" | "grouped",
marginBottom: boolean,
last: boolean,
messageId: string
}>();
const props = defineProps<MessageProps>();
const messageElement = ref<HTMLDivElement>();