You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
328 B
JavaScript
18 lines
328 B
JavaScript
'use strict';
|
|
const React = require('react');
|
|
const create = require('create-react-class');
|
|
|
|
let info = create({
|
|
displayName: "Info",
|
|
render: function() {
|
|
let title = "";
|
|
if (this.props.room != undefined) {
|
|
title = this.props.room.name;
|
|
}
|
|
return <div className="info">{title}</div>;
|
|
}
|
|
});
|
|
|
|
|
|
module.exports = info;
|