bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/nav-bar/container.jsx
2016-06-17 18:15:11 -04:00

30 lines
618 B
JavaScript
Executable File

import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import Meetings from '/imports/api/meetings';
import NavBar from './component';
class NavBarContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
<NavBar {...this.props}>
{this.props.children}
</NavBar>
);
}
}
export default createContainer(() => {
let meetingTitle = Meetings.find().map(meeting => meeting.meetingName);
return {
presentationTitle: meetingTitle,
hasUnreadMessages: true,
};
}, NavBarContainer);