@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
11 lines (10 loc) • 433 B
TypeScript
import { Entity } from "../../interfaces/models/Entity";
import { Comment } from "../../interfaces/models/Comment";
import { ReactionType } from "../../interfaces/models/Reaction";
export interface AddReactionProps {
targetType: "entity" | "comment";
targetId: string;
reactionType: ReactionType;
}
declare function useAddReaction(): (props: AddReactionProps) => Promise<Entity | Comment>;
export default useAddReaction;