elk/components/conversation/ConversationPaginator.vue

19 lines
441 B
Vue
Raw Normal View History

2022-11-18 12:37:22 +03:00
<script setup lang="ts">
2023-01-08 09:21:09 +03:00
import type { Paginator, mastodon } from 'masto'
2022-11-18 12:37:22 +03:00
const { paginator } = defineProps<{
2023-01-08 09:21:09 +03:00
paginator: Paginator<mastodon.v1.Conversation[], mastodon.DefaultPaginationParams>
2022-11-18 12:37:22 +03:00
}>()
</script>
<template>
2022-11-24 08:47:14 +03:00
<CommonPaginator :paginator="paginator">
2022-11-18 12:37:22 +03:00
<template #default="{ item }">
<ConversationCard
:conversation="item"
2022-11-23 05:16:31 +03:00
border="b base" py-1
2022-11-18 12:37:22 +03:00
/>
</template>
</CommonPaginator>
</template>