frontend/app/components/notes/thread.vue

25 lines
566 B
Vue
Raw Normal View History

<template>
<div>
<Note
v-if="parent"
:note="parent"
:hide-actions="true"
2025-12-09 23:26:59 +01:00
:reply-bar="true"
class="rounded-b-none"
/>
2026-01-09 21:47:12 +01:00
<Note :note="note" :class="parent && 'border-t-0 rounded-t-none'" />
</div>
</template>
<script lang="ts" setup>
import type { Status } from "@versia/client/schemas";
import type { z } from "zod";
import Note from "./note.vue";
const { note } = defineProps<{
note: z.infer<typeof Status>;
}>();
const parent = useNote(note.in_reply_to_id);
</script>