31 lines
790 B
JavaScript
31 lines
790 B
JavaScript
// @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);
|