闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
456 B

  1. import { connect } from 'react-redux';
  2. import PrivacyDropdown from '../components/privacy_dropdown';
  3. import { changeComposeVisibility } from '../../../actions/compose';
  4. const mapStateToProps = state => ({
  5. value: state.getIn(['compose', 'privacy']),
  6. });
  7. const mapDispatchToProps = dispatch => ({
  8. onChange (value) {
  9. dispatch(changeComposeVisibility(value));
  10. },
  11. });
  12. export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);