bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/container.jsx
Gabriel Carvalho de Campes a62d520ef6 Mark open chat as active
2016-06-30 14:45:19 +00:00

25 lines
610 B
JavaScript

import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import Service from './service.js';
import UserList from './component.jsx';
class UserListContainer extends Component {
render() {
return (
<UserList
{...this.props}>
{this.props.children}
</UserList>
);
}
}
export default createContainer(({ params }) => ({
users: Service.getUsers(),
currentUser: Service.getCurrentUser(),
openChats: Service.getOpenChats(params.chatID),
openChat: params.chatID,
userActions: Service.userActions,
}), UserListContainer);