Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Comment(props) {
- return (
- <div className="Comment">
- <div className="UserInfo">
- <img className="Avatar"
- src={props.author.avatarUrl}
- alt={props.author.name}
- />
- <div className="UserInfo-name">
- {props.author.name}
- </div>
- </div>
- <div className="Comment-text">
- {props.text}
- </div>
- <div className="Comment-date">
- {formatDate(props.date)}
- </div>
- </div>
- );
- }
- function Avatar(props) {
- return (
- <img className="Avatar"
- src={props.user.avatarUrl}
- alt={props.user.name}
- />
- );
- }
Add Comment
Please, Sign In to add comment