mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-13 00:22:30 +00:00
22 lines
551 B
JavaScript
22 lines
551 B
JavaScript
// @flow
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
import { isLocalParticipantModerator } from '../../../base/participants';
|
|
import AbstractKickButton from '../AbstractKickButton';
|
|
|
|
/**
|
|
* Maps part of the Redux state to the props of this component.
|
|
*
|
|
* @param {Object} state - The Redux state.
|
|
* @returns {Props}
|
|
*/
|
|
function _mapStateToProps(state) {
|
|
return {
|
|
visible: isLocalParticipantModerator(state)
|
|
};
|
|
}
|
|
|
|
export default translate(connect(_mapStateToProps)(AbstractKickButton));
|