UNPKG

@replyke/core

Version:

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

18 lines (17 loc) 525 B
import { Comment } from "../../interfaces/models/Comment"; import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; declare function useReplies({ commentId, sortBy, }: { commentId: string; sortBy: CommentsSortByOptions; }): { replies: (Comment & { new: boolean; })[]; newReplies: (Comment & { new: boolean; })[]; loading: boolean; page: number; setPage: import("react").Dispatch<import("react").SetStateAction<number>>; }; export default useReplies;