Solstice web interface.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
505 B

import React, { PropTypes } from "react";
const Room = ({ isSelected, name, onClick }) => {
let className;
if (isSelected) {
className = "room room-selected";
} else {
className = "room";
}
return (
<a className={className} onClick={onClick} href="#">
{name}
</a>
);
};
Room.propTypes = {
isSelected: PropTypes.bool.isRequired,
name: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired
};
export default Room;