bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/webcam/drop-areas/component.jsx

39 lines
767 B
React
Raw Normal View History

2021-08-25 00:24:48 +08:00
import React from 'react';
2021-09-14 03:41:58 +08:00
import { defineMessages, injectIntl } from 'react-intl';
import styles from './styles.scss';
2021-09-14 03:41:58 +08:00
const intlMessages = defineMessages({
dropZoneLabel: {
id: 'app.video.dropZoneLabel',
description: 'message showing where the user can drop cameraDock',
},
});
const DropArea = ({ id, style, intl }) => (
<>
<div
id={id}
className={styles.dropZoneArea}
style={
{
...style,
zIndex: style.zIndex + 1,
}
}
/>
<div
className={styles.dropZoneBg}
style={
{
...style,
zIndex: style.zIndex,
}
}
>
2021-09-14 03:41:58 +08:00
{intl.formatMessage(intlMessages.dropZoneLabel)}
</div>
</>
);
2021-09-14 03:41:58 +08:00
export default injectIntl(DropArea);