elk/components/account/AccountMoved.vue
2023-01-09 22:27:03 +02:00

30 lines
738 B
Vue

<script setup lang="ts">
import type { mastodon } from 'masto'
defineProps<{
account: mastodon.v1.Account
}>()
</script>
<template>
<div flex="~ col gap-2" p4>
<div flex="~ gap-1" justify-center>
<AccountInlineInfo :account="account" :link="false" />
{{ $t('account_moved_title') }}
</div>
<div flex>
<NuxtLink :to="getAccountRoute(account.moved!)">
<AccountInfo :account="account.moved!" />
</NuxtLink>
<div flex-auto />
<div flex items-center>
<NuxtLink :to="getAccountRoute(account.moved as any)">
<button btn-solid h-fit>
{{ $t('account_go_to_profile') }}
</button>
</NuxtLink>
</div>
</div>
</div>
</template>