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

39 lines
1.4 KiB
React
Raw Normal View History

2017-07-12 21:18:26 +08:00
import React from 'react';
2017-12-07 00:53:16 +08:00
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
import getFromUserSettings from '/imports/ui/services/users-settings';
2021-05-18 04:25:07 +08:00
import Service from '/imports/ui/components/user-list/service';
2017-07-12 21:18:26 +08:00
import UserList from './component';
2016-05-20 02:22:56 +08:00
2017-12-07 00:53:16 +08:00
const propTypes = {
isPublicChat: PropTypes.func.isRequired,
setEmojiStatus: PropTypes.func.isRequired,
clearAllEmojiStatus: PropTypes.func.isRequired,
2017-12-07 00:53:16 +08:00
roving: PropTypes.func.isRequired,
requestUserInformation: PropTypes.func.isRequired,
2017-12-07 00:53:16 +08:00
};
2021-08-05 12:22:07 +08:00
const UserListContainer = (props) => <UserList {...props} />;
2016-05-20 02:22:56 +08:00
2017-12-07 00:53:16 +08:00
UserListContainer.propTypes = propTypes;
2021-08-05 12:22:07 +08:00
export default withTracker(({ compact }) => (
{
2021-05-18 04:25:07 +08:00
hasBreakoutRoom: Service.hasBreakoutRoom(),
isPublicChat: Service.isPublicChat,
setEmojiStatus: Service.setEmojiStatus,
clearAllEmojiStatus: Service.clearAllEmojiStatus,
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,
2021-08-05 12:22:07 +08:00
}
))(UserListContainer);