mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 02:48:05 +08:00
15 lines
555 B
JavaScript
15 lines
555 B
JavaScript
import {bindActionCreators} from 'redux';
|
|
import {addTag, removeTag} from 'plugin-api/alpha/client/actions';
|
|
import {commentBoxTagsSelector} from 'plugin-api/alpha/client/selectors';
|
|
import {connect} from 'plugin-api/beta/client/hocs';
|
|
import OffTopicCheckbox from '../components/OffTopicCheckbox';
|
|
|
|
const mapStateToProps = (state) => ({
|
|
tags: commentBoxTagsSelector(state)
|
|
});
|
|
|
|
const mapDispatchToProps = (dispatch) =>
|
|
bindActionCreators({addTag, removeTag}, dispatch);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(OffTopicCheckbox);
|