1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-24 23:26:09 +09:00
elk/components/account/AccountHandle.vue
2022-11-26 09:33:32 +01:00

17 lines
343 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>{{ getShortHandle(account) }}</span>
<span v-if="serverName" text="gray/95">@{{ serverName }}</span>
</p>
</template>