feat: add image and video chip

This commit is contained in:
Shivam Mishra
2024-11-28 15:40:05 +05:30
parent 820fce8bfc
commit d9ef6df4de
3 changed files with 69 additions and 12 deletions
@@ -0,0 +1,16 @@
<script setup>
defineProps({
attachment: {
type: Object,
required: true,
},
});
</script>
<template>
<div
class="size-[72px] overflow-hidden contain-content rounded-xl cursor-pointer"
>
<img class="w-full h-full object-cover" :src="attachment.dataUrl" />
</div>
</template>