2024-12-02 16:07:52 +01:00
|
|
|
<template>
|
|
|
|
|
<div class="flex flex-col gap-y-4">
|
2024-12-04 12:47:17 +01:00
|
|
|
<div v-for="field in fields" :key="field.name" class="flex flex-col gap-1 break-words">
|
2024-12-02 22:21:04 +01:00
|
|
|
<h3 class="font-semibold text-sm" v-render-emojis="emojis">{{ field.name }}</h3>
|
|
|
|
|
<div v-html="field.value" class="prose prose-sm prose-zinc dark:prose-invert" v-render-emojis="emojis"></div>
|
2024-12-02 16:07:52 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2025-05-26 11:19:15 +02:00
|
|
|
import type { CustomEmoji, Field } from "@versia/client/schemas";
|
|
|
|
|
import type { z } from "zod";
|
2024-12-02 16:07:52 +01:00
|
|
|
|
|
|
|
|
defineProps<{
|
2025-05-26 11:19:15 +02:00
|
|
|
fields: z.infer<typeof Field>[];
|
|
|
|
|
emojis: z.infer<typeof CustomEmoji>[];
|
2024-12-02 16:07:52 +01:00
|
|
|
}>();
|
2025-05-26 11:19:15 +02:00
|
|
|
</script>
|