bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/container.jsx
2016-05-19 15:22:56 -03:00

23 lines
509 B
JavaScript

import React, { Component, PropTypes } 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}
users={this.props.users}>
{this.props.children}
</UserList>
);
}
}
export default createContainer(() => {
const data = Service.mapUsers();
return data;
}, UserListContainer);