import * as React from 'react'; import { FormEvent } from 'react'; import NewComment from './NewComment'; import { MutedText } from '../shared/CustomTexts'; import { CommentRepliesState } from '../../reducers/commentRepliesReducer'; interface Props { id: number; body: string; parentId: number; userFullName: string; updatedAt: string; level: number; reply: CommentRepliesState; handleToggleCommentReply(): void; handleCommentReplyBodyChange(e: FormEvent): void; handleSubmitComment(body: string, parentId: number): void; } const Comment = ({ id, body, parentId, userFullName, updatedAt, level, reply, handleToggleCommentReply, handleCommentReplyBodyChange, handleSubmitComment, }: Props) => (
{userFullName}

{body}

Reply {updatedAt}
{ reply.isOpen ? : null }
); export default Comment;