17 lines
364 B
Vue
17 lines
364 B
Vue
<script setup lang="ts">
|
|
import type { Account } from 'masto'
|
|
|
|
const { account } = defineProps<{
|
|
account: Account
|
|
}>()
|
|
|
|
const serverName = $computed(() => getServerName(account))
|
|
</script>
|
|
|
|
<template>
|
|
<p>
|
|
<span text-secondary>{{ getShortHandle(account) }}</span>
|
|
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
|
|
</p>
|
|
</template>
|