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

42 lines
1.0 KiB
React
Raw Normal View History

2018-06-22 00:33:40 +08:00
import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
2019-03-20 01:51:21 +08:00
import Modal from '/imports/ui/components/modal/simple/component';
import PropTypes from 'prop-types';
2018-01-08 14:17:18 +08:00
import { styles } from './styles';
2017-11-09 02:41:15 +08:00
const propTypes = {
intl: PropTypes.object.isRequired,
closeModal: PropTypes.func.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',
},
});
2019-03-20 01:51:21 +08:00
const PermissionsOverlay = ({ intl, closeModal }) => (
<Modal
overlayClassName={styles.overlay}
className={styles.hint}
onRequestClose={closeModal}
hideBorder
>
<div className={styles.content}>
2018-06-22 00:33:40 +08:00
{ intl.formatMessage(intlMessages.title) }
<small>
{ intl.formatMessage(intlMessages.hint) }
</small>
</div>
2019-03-20 01:51:21 +08:00
</Modal>
2018-06-22 00:33:40 +08:00
);
PermissionsOverlay.propTypes = propTypes;
export default injectIntl(PermissionsOverlay);