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.

MuteVideoButton.js 742B

12345678910111213141516171819202122
  1. // @flow
  2. import { translate } from '../../../base/i18n';
  3. import { isLocalParticipantModerator } from '../../../base/participants';
  4. import { connect } from '../../../base/redux';
  5. import AbstractMuteVideoButton, { _mapStateToProps as _abstractMapStateToProps } from '../AbstractMuteVideoButton';
  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)(AbstractMuteVideoButton));