bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/container.jsx

24 lines
576 B
React
Raw Normal View History

2016-06-29 03:52:03 +08:00
import React, { Component } from 'react';
2016-05-20 02:22:56 +08:00
import { createContainer } from 'meteor/react-meteor-data';
import Service from './service.js';
import UserList from './component.jsx';
class UserListContainer extends Component {
render() {
return (
<UserList
2016-06-28 21:10:20 +08:00
{...this.props}>
2016-05-20 02:22:56 +08:00
{this.props.children}
</UserList>
);
}
}
2016-06-28 21:10:20 +08:00
export default createContainer(({ params }) => ({
2016-06-07 00:45:30 +08:00
users: Service.getUsers(),
2016-06-28 21:10:20 +08:00
currentUser: Service.getCurrentUser(),
openChats: Service.getOpenChats(params),
userActions: Service.userActions,
2016-06-07 00:45:30 +08:00
}), UserListContainer);