9f5dc2c0df
* wip * Rename * Clean up * Clean up * wip * wip * Enable tree shaking * ✌️ * ✌️ * wip * wip * Clean up
18 lines
310 B
Vue
18 lines
310 B
Vue
<template>
|
|
<span class="mk-file-type-icon">
|
|
<template v-if="kind == 'image'"><fa icon="file-image"/></template>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
export default Vue.extend({
|
|
props: ['type'],
|
|
computed: {
|
|
kind(): string {
|
|
return this.type.split('/')[0];
|
|
}
|
|
}
|
|
});
|
|
</script>
|