2024-04-26 00:01:22 +08:00
|
|
|
// @ts-nocheck
|
|
|
|
/* eslint-disable */
|
2024-04-20 04:34:43 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
import Styled from './styles';
|
|
|
|
|
|
|
|
const intlMessages = defineMessages({
|
|
|
|
dropZoneLabel: {
|
|
|
|
id: 'app.video.dropZoneLabel',
|
|
|
|
description: 'message showing where the user can drop cameraDock',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const DropArea = ({
|
|
|
|
id, dataTest, style, intl,
|
|
|
|
}) => (
|
|
|
|
<>
|
|
|
|
<Styled.DropZoneArea
|
|
|
|
id={id}
|
|
|
|
data-test={dataTest}
|
|
|
|
style={
|
|
|
|
{
|
|
|
|
...style,
|
|
|
|
zIndex: style.zIndex + 1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
<Styled.DropZoneBg
|
|
|
|
style={
|
|
|
|
{
|
|
|
|
...style,
|
|
|
|
zIndex: style.zIndex,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
{intl.formatMessage(intlMessages.dropZoneLabel)}
|
|
|
|
</Styled.DropZoneBg>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default injectIntl(DropArea);
|