mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 20:08:37 +08:00
15 lines
562 B
JavaScript
15 lines
562 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);
|