2021-09-10 04:49:15 +08:00
|
|
|
import React from 'react';
|
2021-09-11 04:48:52 +08:00
|
|
|
import { layoutSelectOutput } from '../../layout/context';
|
2021-07-13 03:47:06 +08:00
|
|
|
import DropArea from './component';
|
|
|
|
|
|
|
|
const DropAreaContainer = () => {
|
2021-09-11 04:48:52 +08:00
|
|
|
const dropZoneAreas = layoutSelectOutput((i) => i.dropZoneAreas);
|
2021-07-13 03:47:06 +08:00
|
|
|
|
|
|
|
return (
|
|
|
|
Object.keys(dropZoneAreas).map((objectKey) => (
|
2023-04-26 05:20:48 +08:00
|
|
|
<DropArea dataTest={`dropArea-${objectKey}`} key={objectKey} id={objectKey} style={dropZoneAreas[objectKey]} />
|
2021-07-13 03:47:06 +08:00
|
|
|
))
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DropAreaContainer;
|