1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-09-06 12:19:08 +01:00
elk/components/account/AccountPaginator.client.vue

19 lines
484 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account, Paginator } from 'masto'
const { paginator } = defineProps<{
paginator: Paginator<any, Account[]>
}>()
2022-11-16 16:11:08 +00:00
const { items: accounts, state, endAnchor } = usePaginator(paginator)
</script>
<template>
2022-11-16 16:11:08 +00:00
<CommonPaginator :state="state">
<template v-for="account of accounts" :key="account.id">
<AccountCard :account="account" border="t border" pt-4 />
</template>
<div ref="endAnchor" />
</CommonPaginator>
</template>