1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-08 23:36:49 +01:00
elk/components/PostCard.vue
2022-11-14 00:05:32 +08:00

16 lines
353 B
Vue

<script setup lang="ts">
import type { Post } from '~/api-client/types'
const props = defineProps<{
post: Post
}>()
</script>
<template>
<NuxtLink flex flex-col gap-2 my-4 :to="`/${post.account.acct}/${post.id}`">
<AccountInfo :account="post.account" />
<PostBody :post="post" />
<PostActions :post="post" />
</NuxtLink>
</template>