import React from 'react'; import { defineMessages, injectIntl } from 'react-intl'; import { styles } from './styles.scss'; const intlMessages = defineMessages({ presentationPlacholderText: { id: 'app.presentation.placeholder', description: 'Presentation placeholder text', }, }); const PresentationPlaceholder = ({ fullscreenContext, intl, setPresentationRef, top, left, right, height, width, zIndex, }) => (
setPresentationRef(ref)} className={styles.presentationPlaceholder} data-test="presentationPlaceholder" style={{ top, left, right, width, height, zIndex: fullscreenContext ? zIndex : undefined, display: width ? 'flex' : 'none', }} > { intl.formatMessage(intlMessages.presentationPlacholderText) }
); export default injectIntl(PresentationPlaceholder);