frontend/app/composables/LocalTimeline.ts

15 lines
423 B
TypeScript
Raw Permalink Normal View History

import type { Status } from "@versia/client/schemas";
import type { z } from "zod";
import { type TimelineOptions, useTimeline } from "./Timeline";
export function useLocalTimeline(
options: Partial<TimelineOptions<z.infer<typeof Status>>> = {},
) {
const authStore = useAuthStore();
return useTimeline({
fetchFunction: (opts) => authStore.client.getLocalTimeline(opts),
...options,
});
}