import React, {Component} from 'react'; import PropTypes from 'prop-types'; import CommentBox from '../talk-plugin-commentbox/CommentBox'; const name = 'talk-plugin-replies'; class ReplyBox extends Component { componentDidMount() { document.getElementById('replyText').focus(); } cancelReply = () => { this.props.setActiveReplyBox(''); }; render() { const { styles, postComment, assetId, currentUser, notify, parentId, commentPostedHandler, maxCharCount, charCountEnable } = this.props; return
; } } ReplyBox.propTypes = { charCountEnable: PropTypes.bool.isRequired, maxCharCount: PropTypes.number, setActiveReplyBox: PropTypes.func.isRequired, commentPostedHandler: PropTypes.func, parentId: PropTypes.string, notify: PropTypes.func.isRequired, postComment: PropTypes.func.isRequired, assetId: PropTypes.string.isRequired }; export default ReplyBox;