mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-15 20:54:01 -05:00
23 lines
544 B
JavaScript
23 lines
544 B
JavaScript
// Package imports //
|
|
import { connect } from 'react-redux';
|
|
|
|
// Mastodon imports //
|
|
import { toggleComposeAdvancedOption } from '../../../../mastodon/actions/compose';
|
|
|
|
// Our imports //
|
|
import ComposeAdvancedOptions from '.';
|
|
|
|
const mapStateToProps = state => ({
|
|
values: state.getIn(['compose', 'advanced_options']),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onChange (option) {
|
|
dispatch(toggleComposeAdvancedOption(option));
|
|
},
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposeAdvancedOptions);
|