Files
talk/client/coral-plugin-history/CommentHistory.js
T
2017-01-25 11:19:34 -03:00

27 lines
637 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={props.asset} />;
})}
</div>
</div>
);
};
CommentHistory.propTypes = {
comments: PropTypes.array.isRequired,
asset: PropTypes.object.isRequired
};
export default CommentHistory;