UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

39 lines (38 loc) 1.11 kB
import * as React from 'react'; import { Comment as IComment } from '../dtos'; export interface CommentProps { comment: IComment; user: { id: string; }; replyEditor: JSX.Element; editEditor: JSX.Element; events?: any; requestedToShowReplyEditor: (commentId: string) => void; requestedToShowEditEditor: (commentId: string) => void; bookmarkComment: (commentId: string) => void; likeComment: (commentId: string) => void; dislikeComment: (commentId: string) => void; onLinkClick?: (url: string) => void; getTributeComponent: any; options?: { canBookmarkComment?: boolean; canDislike?: boolean; canLike?: boolean; }; } export declare const Comment: React.FC<CommentProps>; export interface CreateNewCommentProps { comments: IComment[]; content: string; parentConversation: { id: string; }; user: { id: string; }; parentComment: { id: string; }; } export declare const createNewComment: (args: CreateNewCommentProps) => any;