mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 10:00:50 +00:00
20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { changeComposeVisibility } from '@/mastodon/actions/compose_typed';
|
|
|
|
import PrivacyDropdown from '../components/privacy_dropdown';
|
|
|
|
const mapStateToProps = state => ({
|
|
value: state.getIn(['compose', 'privacy']),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onChange (value) {
|
|
dispatch(changeComposeVisibility(value));
|
|
},
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);
|