mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 00:56:24 +08:00
31 lines
973 B
JavaScript
31 lines
973 B
JavaScript
import React, {PropTypes} from 'react';
|
|
import CommentBox from '../coral-plugin-commentbox/CommentBox';
|
|
|
|
const name = 'coral-plugin-replies';
|
|
|
|
const ReplyBox = ({styles, postItem, assetId, authorId, addNotification, parentId, commentPostedHandler, setActiveReplyBox}) => (
|
|
<div className={`${name}-textarea`} style={styles && styles.container}>
|
|
<CommentBox
|
|
commentPostedHandler={commentPostedHandler}
|
|
parentId={parentId}
|
|
cancelButtonClicked={setActiveReplyBox}
|
|
addNotification={addNotification}
|
|
authorId={authorId}
|
|
assetId={assetId}
|
|
postItem={postItem}
|
|
isReply={true} />
|
|
</div>
|
|
);
|
|
|
|
ReplyBox.propTypes = {
|
|
setActiveReplyBox: PropTypes.func.isRequired,
|
|
commentPostedHandler: PropTypes.func,
|
|
parentId: PropTypes.string,
|
|
addNotification: PropTypes.func.isRequired,
|
|
authorId: PropTypes.string.isRequired,
|
|
postItem: PropTypes.func.isRequired,
|
|
assetId: PropTypes.string.isRequired
|
|
};
|
|
|
|
export default ReplyBox;
|