2017-07-12 08:02:51 +00:00
|
|
|
// Package imports //
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
// Mastodon imports //
|
2017-07-12 05:50:50 +00:00
|
|
|
import { toggleComposeAdvancedOption } from '../../../mastodon/actions/compose';
|
2017-07-12 08:02:51 +00:00
|
|
|
|
|
|
|
// Our imports //
|
|
|
|
import ComposeAdvancedOptions from '../../components/compose/advanced_options';
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
values: state.getIn(['compose', 'advanced_options']),
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
|
|
|
|
onChange (option) {
|
2017-07-12 05:50:50 +00:00
|
|
|
dispatch(toggleComposeAdvancedOption(option));
|
2017-07-12 08:02:51 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposeAdvancedOptions);
|