2024-04-20 04:34:43 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { layoutSelectOutput } from '/imports/ui/components/layout/context';
|
2024-05-02 03:48:12 +08:00
|
|
|
import { Output } from '/imports/ui/components/layout/layoutTypes';
|
2024-04-20 04:34:43 +08:00
|
|
|
import DropArea from './component';
|
|
|
|
|
|
|
|
const DropAreaContainer = () => {
|
2024-05-02 03:48:12 +08:00
|
|
|
const dropZoneAreas = layoutSelectOutput((i: Output) => i.dropZoneAreas);
|
2024-04-20 04:34:43 +08:00
|
|
|
|
|
|
|
return (
|
|
|
|
Object.keys(dropZoneAreas).map((objectKey) => (
|
2024-05-02 03:48:12 +08:00
|
|
|
<DropArea
|
|
|
|
dataTest={`dropArea-${objectKey}`}
|
|
|
|
key={objectKey}
|
|
|
|
id={objectKey}
|
|
|
|
style={dropZoneAreas[objectKey]}
|
|
|
|
/>
|
2024-04-20 04:34:43 +08:00
|
|
|
))
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DropAreaContainer;
|