diff options
Diffstat (limited to 'src/components/map/groups/DatacenterGroup.js')
| -rw-r--r-- | src/components/map/groups/DatacenterGroup.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/map/groups/DatacenterGroup.js b/src/components/map/groups/DatacenterGroup.js new file mode 100644 index 00000000..3b7a086b --- /dev/null +++ b/src/components/map/groups/DatacenterGroup.js @@ -0,0 +1,17 @@ +import React from "react"; +import {Group} from "react-konva"; +import RoomGroup from "./RoomGroup"; + +const DatacenterGroup = ({datacenter}) => ( + <Group> + {datacenter.rooms.map(room => ( + <RoomGroup room={room}/> + ))} + </Group> +); + +DatacenterGroup.propTypes = { + datacenter: Shapes.Datacenter, +}; + +export default DatacenterGroup; |
