mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-16 11:45:19 +00:00
23 lines
581 B
JavaScript
23 lines
581 B
JavaScript
|
// Package imports //
|
||
|
import { connect } from 'react-redux';
|
||
|
|
||
|
// Mastodon imports //
|
||
|
import { changeComposeAdvancedOption } from '../../../mastodon/actions/compose';
|
||
|
|
||
|
// Our imports //
|
||
|
import ComposeAdvancedOptions from '../../components/compose/advanced_options';
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
|
values: state.getIn(['compose', 'advanced_options']),
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
|
||
|
onChange (option) {
|
||
|
dispatch(changeComposeAdvancedOption(option));
|
||
|
},
|
||
|
|
||
|
});
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposeAdvancedOptions);
|