2017-07-02 06:39:19 +09:00
|
|
|
import { connect } from 'react-redux';
|
2017-06-30 13:24:34 +09:00
|
|
|
import AdvancedOptionsDropdown from '../components/advanced_options_dropdown';
|
2017-07-02 06:39:19 +09:00
|
|
|
import { changeComposeAdvancedOption } from '../../../actions/compose';
|
2017-06-30 13:24:34 +09:00
|
|
|
|
2017-07-02 06:39:19 +09:00
|
|
|
const mapStateToProps = state => ({
|
|
|
|
values: state.getIn(['compose', 'advanced_options']),
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
|
|
|
|
onChange (option) {
|
|
|
|
dispatch(changeComposeAdvancedOption(option));
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(AdvancedOptionsDropdown);
|