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

16 lines
478 B
TypeScript

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