2020-05-18 12:07:09 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { IconWarning } from '../../../base/icons';
|
2021-04-08 08:35:26 +00:00
|
|
|
import { Label } from '../../../base/label';
|
2020-05-18 12:07:09 +00:00
|
|
|
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 {
|
|
|
|
/**
|
2021-03-16 15:59:33 +00:00
|
|
|
* Renders the platform dependent content.
|
2020-05-18 12:07:09 +00:00
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
_render() {
|
|
|
|
return (
|
2021-04-08 08:35:26 +00:00
|
|
|
<Label
|
2020-05-18 12:07:09 +00:00
|
|
|
icon = { IconWarning }
|
|
|
|
style = { styles.insecureRoomNameLabel } />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(_mapStateToProps)(InsecureRoomNameLabel);
|