+ {comment.commentId === editingCommentId ? (
+
+
+ setEditingCommentId(null)}/>
+ handleSaveClick(diary.diaryId, comment.commentId)}/>
+
+ ) : (
+
+
+
+ {comment.user.name}
+ {DateConverter(comment.createdDate)}
+
+
+ {comment.content}
+
+ 👍 {comment.likeCount}
+ 댓글작성
+
+
+ handleEditClick(comment.commentId, comment.content)}>수정
+ deleteComment(diary.diaryId, comment.commentId)}>삭제
+
+ )}
+
+ )}