jiti-meet/react/features/security/components/security-dialog/native/SecurityDialogButton.js

31 lines
977 B
JavaScript

// @flow
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { navigate } from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
import { screen } from '../../../../mobile/navigation/routes';
import AbstractSecurityDialogButton, {
type Props as AbstractSecurityDialogButtonProps,
_mapStateToProps as _abstractMapStateToProps
} 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));