UNPKG

@replyke/core

Version:

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

16 lines (15 loc) 597 B
import { Comment, GifData } from "../../interfaces/models/Comment"; import { Mention } from "../../interfaces/models/Mention"; export interface CreateCommentProps { 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>; } declare function useCreateComment(): (props: CreateCommentProps) => Promise<Comment>; export default useCreateComment;