1
0

feat: remove PropTypes helper from FilePreview

This commit is contained in:
Dominik Pschenitschni 2024-07-06 13:26:44 +02:00 committed by konrad
parent 78811d916a
commit 0bc1832050

View File

@ -19,17 +19,14 @@
</template>
<script setup lang="ts">
import {type PropType, ref, shallowReactive, watchEffect} from 'vue'
import {ref, shallowReactive, watchEffect} from 'vue'
import AttachmentService from '@/services/attachment'
import type {IAttachment} from '@/modelTypes/IAttachment'
import {SUPPORTED_IMAGE_SUFFIX} from '@/models/attachment'
const props = defineProps({
modelValue: {
type: Object as PropType<IAttachment>,
default: undefined,
},
})
const props = defineProps<{
modelValue?: IAttachment
}>()
const attachmentService = shallowReactive(new AttachmentService())
const blobUrl = ref<string | undefined>(undefined)