bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/container.jsx
2021-02-09 09:44:01 -03:00

35 lines
1.3 KiB
JavaScript
Executable File

import React from 'react';
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
import getFromUserSettings from '/imports/ui/services/users-settings';
import Service from './service';
import UserList from './component';
const propTypes = {
isPublicChat: PropTypes.func.isRequired,
setEmojiStatus: PropTypes.func.isRequired,
roving: PropTypes.func.isRequired,
requestUserInformation: PropTypes.func.isRequired,
};
const UserListContainer = props => <UserList {...props} />;
UserListContainer.propTypes = propTypes;
export default withTracker(({ compact }) => ({
hasBreakoutRoom: Service.hasBreakoutRoom(),
isPublicChat: Service.isPublicChat,
setEmojiStatus: Service.setEmojiStatus,
roving: Service.roving,
CustomLogoUrl: Service.getCustomLogoUrl(),
compact,
getGroupChatPrivate: Service.getGroupChatPrivate,
handleEmojiChange: Service.setEmojiStatus,
getEmojiList: Service.getEmojiList(),
getEmoji: Service.getEmoji(),
showBranding: getFromUserSettings('bbb_display_branding_area', Meteor.settings.public.app.branding.displayBrandingArea),
hasPrivateChatBetweenUsers: Service.hasPrivateChatBetweenUsers,
toggleUserLock: Service.toggleUserLock,
requestUserInformation: Service.requestUserInformation,
}))(UserListContainer);