2018-06-22 00:33:40 +08:00
|
|
|
import React from 'react';
|
2017-11-18 03:01:52 +08:00
|
|
|
import { injectIntl, intlShape, defineMessages } from 'react-intl';
|
2019-03-20 01:51:21 +08:00
|
|
|
import Modal from '/imports/ui/components/modal/simple/component';
|
2019-06-05 01:43:58 +08:00
|
|
|
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
|
|
|
|
2017-11-18 03:01:52 +08:00
|
|
|
const propTypes = {
|
|
|
|
intl: intlShape.isRequired,
|
2019-06-05 01:43:58 +08:00
|
|
|
closeModal: PropTypes.func.isRequired,
|
2017-11-18 03:01:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
);
|
2017-11-18 03:01:52 +08:00
|
|
|
|
|
|
|
PermissionsOverlay.propTypes = propTypes;
|
|
|
|
|
|
|
|
export default injectIntl(PermissionsOverlay);
|