summaryrefslogtreecommitdiff
path: root/packages/client/src/components/global/user-name.vue
blob: 090de3df3023dddbb324400e9a6ffb6b435ab3d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
<Mfm :text="user.name || user.username" :plain="true" :nowrap="nowrap" :custom-emojis="user.emojis"/>
</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>