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

21 lines
463 B
Vue
Raw Normal View History

<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
2023-02-08 11:07:19 +00:00
<template>
2023-05-19 04:58:09 +00:00
<Mfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap" :emojiUrls="user.emojis"/>
2023-02-08 11:07:19 +00:00
</template>
<script lang="ts" setup>
import { } from 'vue';
import * as Misskey from 'misskey-js';
2023-02-08 11:07:19 +00:00
const props = withDefaults(defineProps<{
user: Misskey.entities.User;
2023-02-08 11:07:19 +00:00
nowrap?: boolean;
}>(), {
nowrap: true,
});
</script>