@servicetitan/assist-ui
Version:
ServiceTitan Atlas UI Components
12 lines • 417 B
TypeScript
interface UseInfiniteScrollOptions {
hasMore: boolean;
isLoading: boolean;
onLoadMore: () => void;
rootMargin?: string;
threshold?: number;
}
export declare const useInfiniteScroll: ({ hasMore, isLoading, onLoadMore, rootMargin, threshold, }: UseInfiniteScrollOptions) => {
sentinelRef: import("react").RefObject<HTMLDivElement>;
};
export {};
//# sourceMappingURL=use-infinite-scroll.d.ts.map