import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import Styled from './styles'; import browserInfo from '/imports/utils/browserInfo'; import { getSettingsSingletonInstance } from '/imports/ui/services/settings'; 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', }, }); const { isChrome, isFirefox, isSafari } = browserInfo; const PermissionsOverlay = ({ intl, closeModal }) => { const Settings = getSettingsSingletonInstance(); const { animations } = Settings.application; return ( {intl.formatMessage(intlMessages.title)} {intl.formatMessage(intlMessages.hint)} ) }; PermissionsOverlay.propTypes = propTypes; export default injectIntl(PermissionsOverlay);