2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2023-04-08 02:01:42 +02:00
|
|
|
<span class="mk-file-type-icon">
|
|
|
|
<template v-if="kind == 'image'"
|
|
|
|
><i class="ph-file-image ph-bold ph-lg"></i
|
|
|
|
></template>
|
|
|
|
</span>
|
2020-01-29 20:37:25 +01:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 05:27:17 +01:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 02:01:42 +02:00
|
|
|
import { computed } from "vue";
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2022-01-07 05:27:17 +01:00
|
|
|
const props = defineProps<{
|
|
|
|
type: string;
|
|
|
|
}>();
|
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
const kind = computed(() => props.type.split("/")[0]);
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|