1 import PropTypes from 'prop-types';
2 import React from 'react';
4 const Room = ({ children, type, x, y }) =>
6 className={`room ${type || 'default'}`}
7 transform={x || y ? `translate(${x || 0}, ${y || 0})` : undefined}
13 children: PropTypes.node,
14 type: PropTypes.string,