選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

KickButton.js 559B

123456789101112131415161718192021
  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));