2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
|
|
|
<span class="mk-file-type-icon">
|
2021-04-20 14:22:59 +00:00
|
|
|
<template v-if="kind == 'image'"><i class="fas fa-file-image"></i></template>
|
2020-01-29 19:37:25 +00:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
2022-01-07 04:27:17 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-01-07 04:27:17 +00:00
|
|
|
const props = defineProps<{
|
|
|
|
type: string;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const kind = computed(() => props.type.split('/')[0]);
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|