You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
630 B
25 lines
630 B
8 years ago
|
import { connect } from 'react-redux';
|
||
|
import { cancelReplyCompose } from '../../../actions/compose';
|
||
|
import { makeGetStatus } from '../../../selectors';
|
||
|
import ReplyIndicator from '../components/reply_indicator';
|
||
|
|
||
|
const makeMapStateToProps = () => {
|
||
|
const getStatus = makeGetStatus();
|
||
|
|
||
|
const mapStateToProps = (state, props) => ({
|
||
|
status: getStatus(state, state.getIn(['compose', 'in_reply_to'])),
|
||
|
});
|
||
|
|
||
|
return mapStateToProps;
|
||
|
};
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
|
||
|
onCancel () {
|
||
|
dispatch(cancelReplyCompose());
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
export default connect(makeMapStateToProps, mapDispatchToProps)(ReplyIndicator);
|