2018-12-19 18:40:17 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../../base/i18n';
|
2019-06-19 13:32:09 +00:00
|
|
|
import { isLocalParticipantModerator } from '../../../base/participants';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../../base/redux';
|
2018-12-19 18:40:17 +00:00
|
|
|
|
2019-01-05 16:49:21 +00:00
|
|
|
import AbstractKickButton from '../AbstractKickButton';
|
2018-12-19 18:40:17 +00:00
|
|
|
|
|
|
|
/**
|
2019-06-19 13:32:09 +00:00
|
|
|
* Maps part of the Redux state to the props of this component.
|
|
|
|
*
|
|
|
|
* @param {Object} state - The Redux state.
|
|
|
|
* @returns {Props}
|
2018-12-19 18:40:17 +00:00
|
|
|
*/
|
2019-06-19 13:32:09 +00:00
|
|
|
function _mapStateToProps(state) {
|
|
|
|
return {
|
|
|
|
visible: isLocalParticipantModerator(state)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect(_mapStateToProps)(AbstractKickButton));
|