Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
21 lines
660 B
TypeScript
21 lines
660 B
TypeScript
import { connect } from 'react-redux';
|
|
|
|
import { IReduxState } from '../../../app/types';
|
|
import { translate } from '../../../base/i18n/functions';
|
|
import { isLocalParticipantModerator } from '../../../base/participants/functions';
|
|
import AbstractMuteEveryoneElseButton from '../AbstractMuteEveryoneElseButton';
|
|
|
|
/**
|
|
* Maps part of the Redux state to the props of this component.
|
|
*
|
|
* @param {Object} state - The Redux state.
|
|
* @returns {Props}
|
|
*/
|
|
function _mapStateToProps(state: IReduxState) {
|
|
return {
|
|
visible: isLocalParticipantModerator(state)
|
|
};
|
|
}
|
|
|
|
export default translate(connect(_mapStateToProps)(AbstractMuteEveryoneElseButton));
|