mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
22 lines
452 B
Vue
22 lines
452 B
Vue
<script setup lang="ts">
|
|
import type { Attachment } from 'masto'
|
|
|
|
const { attachment } = defineProps<{
|
|
attachment: Attachment
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<template v-if="attachment.type === 'image'">
|
|
<img
|
|
class="status-attachment-image"
|
|
:src="attachment.previewUrl!"
|
|
:alt="attachment.description!"
|
|
rounded-lg border="~ gray/10"
|
|
>
|
|
</template>
|
|
<template v-else>
|
|
TODO: {{ attachment }}
|
|
</template>
|
|
</template>
|