@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
15 lines (14 loc) • 542 B
TypeScript
import { Comment, GifData } from "../../interfaces/models/Comment";
import { Mention } from "../../interfaces/models/Mention";
declare function useCreateComment(): (props: {
entityId: string;
foreignId?: string | null | undefined;
parentCommentId?: string | null | undefined;
content?: string;
gif?: GifData;
mentions?: Mention[];
referencedCommentId?: string | null | undefined;
attachments?: Record<string, any>[];
metadata?: Record<string, any>;
}) => Promise<Comment>;
export default useCreateComment;