mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-21 05:57:47 +00:00
https://github.com/jitsi/jitsi-meet/pull/1397 (React Toolbar) is huge at the time of this writing. In order to reduce it, I'm extracting changes not directly related to React-ifying the Toolbar such as added jsdocs and source code formatting.
32 lines
832 B
JavaScript
32 lines
832 B
JavaScript
import Chat from './chat/Chat';
|
|
import SettingsMenu from './settings/SettingsMenu';
|
|
import Profile from './profile/Profile';
|
|
import ContactListView from './contactlist/ContactListView';
|
|
import UIUtil from '../util/UIUtil';
|
|
|
|
const SidePanels = {
|
|
init (eventEmitter) {
|
|
// Initialize chat
|
|
if (UIUtil.isButtonEnabled('chat')) {
|
|
Chat.init(eventEmitter);
|
|
}
|
|
|
|
// Initialize settings
|
|
if (UIUtil.isButtonEnabled('settings')) {
|
|
SettingsMenu.init(eventEmitter);
|
|
}
|
|
|
|
// Initialize profile
|
|
if (UIUtil.isButtonEnabled('profile')) {
|
|
Profile.init(eventEmitter);
|
|
}
|
|
|
|
// Initialize contact list view
|
|
if (UIUtil.isButtonEnabled('contacts')) {
|
|
ContactListView.init();
|
|
}
|
|
}
|
|
};
|
|
|
|
export default SidePanels;
|