2024-04-27 03:28:12 +02:00
|
|
|
<template>
|
2024-06-29 05:05:50 +02:00
|
|
|
<Timeline type="notification" :items="(items as Notification[])" :is-loading="isLoading"
|
|
|
|
|
:has-reached-end="hasReachedEnd" :error="error" :load-next="loadNext" :load-prev="loadPrev"
|
|
|
|
|
:remove-item="removeItem" :update-item="updateItem" />
|
2024-04-27 03:28:12 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-06-29 05:05:50 +02:00
|
|
|
import type { Notification } from "@lysand-org/client/types";
|
|
|
|
|
import { useNotificationTimeline } from "~/composables/NotificationTimeline";
|
|
|
|
|
import Timeline from "./timeline.vue";
|
2024-06-21 04:09:09 +02:00
|
|
|
|
2024-06-10 05:24:55 +02:00
|
|
|
const client = useClient();
|
2024-04-27 03:28:12 +02:00
|
|
|
|
2024-06-29 05:05:50 +02:00
|
|
|
const {
|
|
|
|
|
error,
|
|
|
|
|
hasReachedEnd,
|
|
|
|
|
isLoading,
|
|
|
|
|
items,
|
|
|
|
|
loadNext,
|
|
|
|
|
loadPrev,
|
|
|
|
|
removeItem,
|
|
|
|
|
updateItem,
|
|
|
|
|
} = useNotificationTimeline(client.value);
|
2024-04-27 03:28:12 +02:00
|
|
|
</script>
|