import Emoji from "./Emoji"; const CommentDisplay = ({ comment }) => { // Assume receiving a comment object let emoji; if (comment.emotion === "positive") { emoji = "😃"; } else if (comment.emotion === "neutral") { emoji = "😐"; } else { emoji = "😡"; } return (
Avatar
{comment.time}
{comment.text}
); }; export default CommentDisplay;