2022-11-15 14:00:28 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { Paginator, Status } from 'masto'
|
|
|
|
|
|
|
|
const { paginator } = defineProps<{
|
|
|
|
paginator: Paginator<any, Status[]>
|
|
|
|
}>()
|
|
|
|
|
2022-11-16 17:11:08 +01:00
|
|
|
const { items: statuses, state, endAnchor } = usePaginator(paginator)
|
2022-11-15 14:00:28 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-16 17:11:08 +01:00
|
|
|
<CommonPaginator :state="state">
|
|
|
|
<template v-for="status of statuses" :key="status.id">
|
|
|
|
<StatusCard :status="status" border="t border" pt-4 />
|
|
|
|
</template>
|
|
|
|
<div ref="endAnchor" />
|
|
|
|
</CommonPaginator>
|
2022-11-15 14:00:28 +01:00
|
|
|
</template>
|