123456789101112131415161718192021222324252627282930 |
- // @flow
-
- import React from 'react';
-
- import { IconWarning } from '../../../base/icons';
- import { Label } from '../../../base/label';
- import { connect } from '../../../base/redux';
- import AbstractInsecureRoomNameLabel, { _mapStateToProps } from '../AbstractInsecureRoomNameLabel';
-
- import styles from './styles';
-
- /**
- * Renders a label indicating that we are in a room with an insecure name.
- */
- class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
- /**
- * Renders the platform dependent content.
- *
- * @inheritdoc
- */
- _render() {
- return (
- <Label
- icon = { IconWarning }
- style = { styles.insecureRoomNameLabel } />
- );
- }
- }
-
- export default connect(_mapStateToProps)(InsecureRoomNameLabel);
|