UNPKG

@replyke/core

Version:

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

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