2021-12-10 16:23:27 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../../../base/i18n';
|
|
|
|
import { connect } from '../../../../base/redux';
|
2022-01-25 12:55:57 +00:00
|
|
|
import { navigate } from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
|
|
|
|
import { screen } from '../../../../mobile/navigation/routes';
|
2021-12-10 16:23:27 +00:00
|
|
|
import AbstractSecurityDialogButton, {
|
2022-09-27 07:10:28 +00:00
|
|
|
type Props as AbstractSecurityDialogButtonProps,
|
|
|
|
_mapStateToProps as _abstractMapStateToProps
|
2021-12-10 16:23:27 +00:00
|
|
|
} from '../AbstractSecurityDialogButton';
|
|
|
|
|
|
|
|
type Props = AbstractSecurityDialogButtonProps;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements an {@link AbstractSecurityDialogButton} to open the security screen.
|
|
|
|
*/
|
|
|
|
class SecurityDialogButton<P: Props, S:*> extends AbstractSecurityDialogButton<P, S> {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens / closes the security screen.
|
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
_handleClickSecurityButton() {
|
|
|
|
navigate(screen.conference.security);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect(_abstractMapStateToProps)(SecurityDialogButton));
|