2025-05-05 20:12:41 +02:00
|
|
|
<template>
|
2025-12-09 22:32:22 +01:00
|
|
|
<AttachmentBase :attachment="attachment">
|
|
|
|
|
<audio
|
|
|
|
|
:src="attachment.url"
|
|
|
|
|
:alt="attachment.description ?? undefined"
|
|
|
|
|
controls
|
|
|
|
|
/>
|
|
|
|
|
</AttachmentBase>
|
2025-05-05 20:12:41 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2025-05-26 11:19:15 +02:00
|
|
|
import type { Attachment } from "@versia/client/schemas";
|
|
|
|
|
import type { z } from "zod";
|
2025-12-09 22:32:22 +01:00
|
|
|
import AttachmentBase from "./attachment-base.vue";
|
2025-05-05 20:12:41 +02:00
|
|
|
|
|
|
|
|
const { attachment } = defineProps<{
|
2025-05-26 11:19:15 +02:00
|
|
|
attachment: z.infer<typeof Attachment>;
|
2025-05-05 20:12:41 +02:00
|
|
|
}>();
|
|
|
|
|
</script>
|