import React from "react"; import {Group} from "react-konva"; import Shapes from "../../../shapes/index"; import {deriveWallLocations} from "../../../util/tile-calculations"; import WallSegment from "../elements/WallSegment"; import TileGroup from "./TileGroup"; const RoomGroup = ({room}) => ( {room.tiles.map(tile => ( ))} {deriveWallLocations(room).map((wallSegment, index) => ( ))} ); RoomGroup.propTypes = { room: Shapes.Room, }; export default RoomGroup;