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.

KickButton.js 558B

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