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

16 lines
352 B
Vue
Raw Normal View History

2023-02-08 20:07:19 +09:00
<template>
2023-05-19 13:58:09 +09:00
<Mfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
2023-02-08 20:07:19 +09:00
</template>
<script lang="ts" setup>
import { } from 'vue';
import * as misskey from 'misskey-js';
const props = withDefaults(defineProps<{
user: misskey.entities.User;
nowrap?: boolean;
}>(), {
nowrap: true,
});
</script>