frontend/composables/NotificationTimeline.ts
2024-06-28 17:05:50 -10:00

14 lines
447 B
TypeScript

import type { LysandClient } from "@lysand-org/client";
import type { Notification } from "@lysand-org/client/types";
import { type TimelineOptions, useTimeline } from "./Timeline";
export function useNotificationTimeline(
client: LysandClient,
options: Partial<TimelineOptions<Notification>> = {},
) {
return useTimeline(client, {
fetchFunction: (client, opts) => client.getNotifications(opts),
...options,
});
}