UNPKG

@replyke/core

Version:

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

12 lines (11 loc) 403 B
import { Comment } from "../../interfaces/models/Comment"; declare function useCommentVotes(props: { comment: Comment; setComment: React.Dispatch<React.SetStateAction<Comment>>; }): { upvoteComment: () => Promise<void>; removeCommentUpvote: () => Promise<void>; downvoteComment: () => Promise<void>; removeCommentDownvote: () => Promise<void>; }; export default useCommentVotes;