2022-11-15 18:56:11 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { Account, Paginator } from 'masto'
|
|
|
|
|
|
|
|
const { paginator } = defineProps<{
|
|
|
|
paginator: Paginator<any, Account[]>
|
|
|
|
}>()
|
|
|
|
|
2022-11-16 19:11:08 +03:00
|
|
|
const { items: accounts, state, endAnchor } = usePaginator(paginator)
|
2022-11-15 18:56:11 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-16 19:11:08 +03: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>
|
2022-11-15 18:56:11 +03:00
|
|
|
</template>
|