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

37 lines
732 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';
2021-11-03 19:51:56 +08:00
import Styled from './styles';
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 }) => (
<>
2021-11-03 19:51:56 +08:00
<Styled.DropZoneArea
id={id}
style={
{
...style,
zIndex: style.zIndex + 1,
}
}
/>
2021-11-03 19:51:56 +08:00
<Styled.DropZoneBg
style={
{
...style,
zIndex: style.zIndex,
}
}
>
2021-09-14 03:41:58 +08:00
{intl.formatMessage(intlMessages.dropZoneLabel)}
2021-11-03 19:51:56 +08:00
</Styled.DropZoneBg>
</>
);
2021-09-14 03:41:58 +08:00
export default injectIntl(DropArea);