UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

22 lines (21 loc) 847 B
import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; import { Comment, CommentIncludeParam } from "../../interfaces/models/Comment"; export interface UseFetchManyCommentsWrapperProps { entityId?: string | null; userId?: string | null; parentId?: string | null; sourceId?: string | null; limit?: number; include?: CommentIncludeParam; defaultSortBy?: CommentsSortByOptions; } export interface UseFetchManyCommentsWrapperValues { comments: Comment[]; loading: boolean; hasMore: boolean; sortBy: CommentsSortByOptions | null; setSortBy: (newSortBy: CommentsSortByOptions) => void; loadMore: () => void; } declare function useFetchManyCommentsWrapper(props: UseFetchManyCommentsWrapperProps): UseFetchManyCommentsWrapperValues; export default useFetchManyCommentsWrapper;