mirror of
https://github.com/versia-pub/frontend.git
synced 2026-01-26 04:16:02 +01:00
20 lines
491 B
Vue
20 lines
491 B
Vue
<template>
|
|
<AttachmentBase :attachment="attachment">
|
|
<audio
|
|
:src="attachment.url"
|
|
:alt="attachment.description ?? undefined"
|
|
controls
|
|
/>
|
|
</AttachmentBase>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import type { Attachment } from "@versia/client/schemas";
|
|
import type { z } from "zod";
|
|
import AttachmentBase from "./attachment-base.vue";
|
|
|
|
const { attachment } = defineProps<{
|
|
attachment: z.infer<typeof Attachment>;
|
|
}>();
|
|
</script>
|