44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
import React, { Component } from 'react';
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
import { meetingIsBreakout } from '/imports/ui/components/app/service';
|
|
import Service from './service.js';
|
|
|
|
import UserList from './component.jsx';
|
|
|
|
class UserListContainer extends Component {
|
|
render() {
|
|
const {
|
|
compact,
|
|
users,
|
|
currentUser,
|
|
openChats,
|
|
openChat,
|
|
userActions,
|
|
isBreakoutRoom,
|
|
children,
|
|
} = this.props;
|
|
|
|
return (
|
|
<UserList
|
|
compact={compact}
|
|
users={users}
|
|
currentUser={currentUser}
|
|
openChats={openChats}
|
|
openChat={openChat}
|
|
isBreakoutRoom={isBreakoutRoom}
|
|
userActions={userActions}>
|
|
{children}
|
|
</UserList>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default createContainer(({ params }) => ({
|
|
users: Service.getUsers(),
|
|
currentUser: Service.getCurrentUser(),
|
|
openChats: Service.getOpenChats(params.chatID),
|
|
openChat: params.chatID,
|
|
userActions: Service.userActions,
|
|
isBreakoutRoom: meetingIsBreakout(),
|
|
}), UserListContainer);
|