Sharkey/packages/frontend/src/components/global/MkUserName.vue

16 lines
312 B
Vue
Raw Normal View History

2018-12-06 04:18:13 +02:00
<template>
<Mfm :text="user.name || user.username" :plain="true" :nowrap="nowrap"/>
2018-12-06 04:18:13 +02:00
</template>
<script lang="ts" setup>
import { } from 'vue';
import * as misskey from 'misskey-js';
2018-12-06 04:18:13 +02:00
const props = withDefaults(defineProps<{
user: misskey.entities.User;
nowrap?: boolean;
}>(), {
nowrap: true,
2018-12-06 04:18:13 +02:00
});
</script>