bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/permissions-overlay/component.jsx
2019-06-04 17:43:58 +00:00

42 lines
1.0 KiB
JavaScript

import React from 'react';
import { injectIntl, intlShape, defineMessages } from 'react-intl';
import Modal from '/imports/ui/components/modal/simple/component';
import PropTypes from 'prop-types';
import { styles } from './styles';
const propTypes = {
intl: intlShape.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',
},
});
const PermissionsOverlay = ({ intl, closeModal }) => (
<Modal
overlayClassName={styles.overlay}
className={styles.hint}
onRequestClose={closeModal}
hideBorder
>
<div className={styles.content}>
{ intl.formatMessage(intlMessages.title) }
<small>
{ intl.formatMessage(intlMessages.hint) }
</small>
</div>
</Modal>
);
PermissionsOverlay.propTypes = propTypes;
export default injectIntl(PermissionsOverlay);