import type { LysandClient } from "@lysand-org/client"; import type { Status } from "~/types/mastodon/status"; export const useHomeTimeline = ( client: LysandClient | null, options: MaybeRef<{ local?: boolean; limit?: number; max_id?: string; since_id?: string; min_id?: string; }>, ): { timeline: Ref; loadNext: () => Promise; loadPrev: () => Promise; } => { return useTimeline( client, (client, options) => client?.getHomeTimeline(options), options, ); };