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