您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MuteButton.js 727B

12345678910111213141516171819202122
  1. // @flow
  2. import { translate } from '../../../base/i18n';
  3. import { isLocalParticipantModerator } from '../../../base/participants';
  4. import { connect } from '../../../base/redux';
  5. import AbstractMuteButton, { _mapStateToProps as _abstractMapStateToProps } from '../AbstractMuteButton';
  6. /**
  7. * Maps part of the Redux state to the props of this component.
  8. *
  9. * @param {Object} state - The Redux state.
  10. * @param {Object} ownProps - Properties of component.
  11. * @returns {Props}
  12. */
  13. function _mapStateToProps(state, ownProps) {
  14. return {
  15. ..._abstractMapStateToProps(state, ownProps),
  16. visible: isLocalParticipantModerator(state)
  17. };
  18. }
  19. export default translate(connect(_mapStateToProps)(AbstractMuteButton));