bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/permissions-overlay/component.jsx

34 lines
787 B
React
Raw Normal View History

2018-06-22 00:33:40 +08:00
import React from 'react';
import { injectIntl, intlShape, defineMessages } from 'react-intl';
2018-01-08 14:17:18 +08:00
import { styles } from './styles';
2017-11-09 02:41:15 +08:00
const propTypes = {
intl: intlShape.isRequired,
};
const intlMessages = defineMessages({
title: {
id: 'app.audio.permissionsOverlay.title',
description: 'Title for the overlay',
},
hint: {
id: 'app.audio.permissionsOverlay.hint',
description: 'Hint for the overlay',
},
});
2018-06-22 00:33:40 +08:00
const PermissionsOverlay = ({ intl }) => (
<div className={styles.overlay}>
<div className={styles.hint}>
{ intl.formatMessage(intlMessages.title) }
<small>
{ intl.formatMessage(intlMessages.hint) }
</small>
</div>
</div>
);
PermissionsOverlay.propTypes = propTypes;
export default injectIntl(PermissionsOverlay);