@nodeject/ui-components
Version:
UI library for non-trivial components
26 lines (25 loc) • 928 B
TypeScript
import * as React from 'react';
import { Conversation as IConversation, Comment as IComment } from '../dtos';
export interface OptionsProps {
canBookmarkComment?: boolean;
canDislike?: boolean;
canLike?: boolean;
isChronologicalOrder?: boolean;
}
export interface ConversationProps {
addComment: (comment: IComment, callback?: () => void) => void;
bookmarkComment: (commentId: string) => void;
conversation: IConversation;
dislikeComment: (commentId: string) => void;
editComment: (comment: IComment, callback?: () => void) => void;
likeComment: (commentId: string) => void;
options?: OptionsProps;
user: {
id: string;
};
talkRef: (ref: React.MutableRefObject<any>) => void;
onLinkClick?: (url: string) => void;
getTributeComponent: any;
tributes?: Array<any>;
}
export declare const Conversation: React.FC<ConversationProps>;