jiti-meet/modules/UI/side_pannels/SidePanels.js

32 lines
833 B
JavaScript
Raw Normal View History

2016-10-25 13:16:15 +00:00
import Chat from './chat/Chat';
import SettingsMenu from './settings/SettingsMenu';
import Profile from './profile/Profile';
import ContactListView from './contactlist/ContactListView';
2017-07-26 20:52:41 +00:00
import { isButtonEnabled } from '../../../react/features/toolbox';
2016-10-25 13:16:15 +00:00
const SidePanels = {
init(eventEmitter) {
// Initialize chat
2017-07-26 20:52:41 +00:00
if (isButtonEnabled('chat')) {
Chat.init(eventEmitter);
}
// Initialize settings
2017-07-26 20:52:41 +00:00
if (isButtonEnabled('settings')) {
SettingsMenu.init(eventEmitter);
}
// Initialize profile
2017-07-26 20:52:41 +00:00
if (isButtonEnabled('profile')) {
Profile.init(eventEmitter);
}
// Initialize contact list view
2017-07-26 20:52:41 +00:00
if (isButtonEnabled('contacts')) {
ContactListView.init();
}
2016-10-25 13:16:15 +00:00
}
};
export default SidePanels;