iceshrimp/packages/client/src/components/MkFileTypeIcon.vue
Laura Hausmann a63ad0c132
Revert "Rename Vue files for consistency"
This reverts commit dad096ee4c4d085670b64c929bf46f65cd4c9c30.
2023-10-25 20:30:32 +02:00

18 lines
337 B
Vue

<template>
<span class="mk-file-type-icon">
<template v-if="kind == 'image'"
><i class="ph-file-image ph-bold ph-lg"></i
></template>
</span>
</template>
<script lang="ts" setup>
import { computed } from "vue";
const props = defineProps<{
type: string;
}>();
const kind = computed(() => props.type.split("/")[0]);
</script>