2022-12-04 17:28:22 +00:00
|
|
|
<script setup lang="ts">
|
2023-01-05 16:48:20 +00:00
|
|
|
// type used in <template>
|
|
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
2022-12-04 17:28:22 +00:00
|
|
|
import type { Account } from 'masto'
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
account: 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>
|
2023-01-05 16:48:20 +00:00
|
|
|
<!-- type error of masto.js -->
|
|
|
|
<NuxtLink :to="getAccountRoute(account.moved as unknown as Account)">
|
|
|
|
<AccountInfo :account="account.moved as unknown as Account" />
|
2022-12-04 17:28:22 +00:00
|
|
|
</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>
|