1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-24 19:48:01 +09:00
elk/components/account/AccountHandle.vue

17 lines
364 B
Vue
Raw Normal View History

<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>