UNPKG

@replyke/core

Version:

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

19 lines (18 loc) 711 B
import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; import { Comment } from "../../interfaces/models/Comment"; export interface UseProfileCommentsDataProps { userId: string | undefined | null; limit?: number; defaultSortBy?: CommentsSortByOptions; includeEntity?: boolean; } export interface UseProfileCommentsDataValues { comments: Comment[]; loading: boolean; hasMore: boolean; sortBy: CommentsSortByOptions | null; setSortBy: (newSortBy: CommentsSortByOptions) => void; loadMore: () => void; } declare function useProfileCommentsData(props: UseProfileCommentsDataProps): UseProfileCommentsDataValues; export default useProfileCommentsData;