frontend/app/components/notes/attachments/video.vue

22 lines
564 B
Vue
Raw Permalink Normal View History

<template>
2025-12-09 22:32:22 +01:00
<AttachmentBase :attachment="attachment">
<video
:src="attachment.url"
:alt="attachment.description ?? undefined"
controls
>
Your browser does not support the video tag.
</video>
</AttachmentBase>
</template>
<script lang="ts" setup>
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";
const { attachment } = defineProps<{
attachment: z.infer<typeof Attachment>;
}>();
</script>