]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/aos-tracker/Room.js
add basic map
[alttp.git] / resources / js / components / aos-tracker / Room.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 const Room = ({ children, type, x, y }) =>
5         <g
6                 className={`room ${type || 'default'}`}
7                 transform={x || y ? `translate(${x || 0}, ${y || 0})` : undefined}
8         >
9                 {children}
10         </g>;
11
12 Room.propTypes = {
13         children: PropTypes.node,
14         type: PropTypes.string,
15         x: PropTypes.number,
16         y: PropTypes.number,
17 };
18
19 export default Room;