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