summaryrefslogtreecommitdiff
path: root/src/components/map/groups/RoomGroup.js
blob: 28240d7730e6a80a9a137319bddfca4b60455e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from "react";
import {Group} from "react-konva";
import Shapes from "../../../shapes/index";
import TileGroup from "./TileGroup";

const RoomGroup = ({room}) => (
    <Group>
        {room.tiles.map(tile => (
            <TileGroup key={tile.id} tile={tile}/>
        ))}
    </Group>
);

RoomGroup.propTypes = {
    room: Shapes.Room,
};

export default RoomGroup;