mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import type { Client } from "@versia/client";
|
|
import type { Notification } from "@versia/client/types";
|
|
import { type TimelineOptions, useTimeline } from "./Timeline";
|
|
|
|
export function useNotificationTimeline(
|
|
client: Client,
|
|
options: Partial<TimelineOptions<Notification>> = {},
|
|
) {
|
|
return useTimeline(client, {
|
|
fetchFunction: (client, opts) => client.getNotifications(opts),
|
|
...options,
|
|
});
|
|
}
|