bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/webcam/drop-areas/container.tsx

22 lines
588 B
TypeScript
Raw Normal View History

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