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-07-13 03:47:06 +08:00
|
|
|
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 }) => (
|
2021-07-13 03:47:06 +08:00
|
|
|
<>
|
|
|
|
<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)}
|
2021-07-13 03:47:06 +08:00
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
2021-09-14 03:41:58 +08:00
|
|
|
export default injectIntl(DropArea);
|