2025-05-26 11:19:15 +02:00
|
|
|
import type { Status } from "@versia/client/schemas";
|
|
|
|
|
import type { z } from "zod";
|
2024-06-29 05:05:50 +02:00
|
|
|
import { type TimelineOptions, useTimeline } from "./Timeline";
|
2024-04-29 04:59:28 +02:00
|
|
|
|
2024-06-29 05:05:50 +02:00
|
|
|
export function useHomeTimeline(
|
2025-05-26 11:19:15 +02:00
|
|
|
options: Partial<TimelineOptions<z.infer<typeof Status>>> = {},
|
2024-06-29 05:05:50 +02:00
|
|
|
) {
|
2025-08-28 07:41:51 +02:00
|
|
|
const authStore = useAuthStore();
|
|
|
|
|
|
|
|
|
|
return useTimeline({
|
|
|
|
|
fetchFunction: (opts) => authStore.client.getHomeTimeline(opts),
|
2024-06-29 05:05:50 +02:00
|
|
|
...options,
|
|
|
|
|
});
|
|
|
|
|
}
|