Files
talk/client/talk-plugin-history/CommentHistory.js
T
2017-07-20 11:52:36 -03:00

26 lines
603 B
JavaScript

import React, {PropTypes} from 'react';
import Comment from './Comment';
import styles from './CommentHistory.css';
const CommentHistory = (props) => {
return (
<div className={`${styles.header} commentHistory`}>
<div className="commentHistory__list">
{props.comments.map((comment, i) => {
return <Comment
key={i}
comment={comment}
link={props.link}
asset={comment.asset} />;
})}
</div>
</div>
);
};
CommentHistory.propTypes = {
comments: PropTypes.array.isRequired
};
export default CommentHistory;