UNPKG

@replyke/core

Version:

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

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