12345678910111213141516171819202122232425262728293031 |
- import Chat from './chat/Chat';
- import SettingsMenu from './settings/SettingsMenu';
- import Profile from './profile/Profile';
- import ContactListView from './contactlist/ContactListView';
- import { isButtonEnabled } from '../../../react/features/toolbox';
-
- const SidePanels = {
- init(eventEmitter) {
- // Initialize chat
- if (isButtonEnabled('chat')) {
- Chat.init(eventEmitter);
- }
-
- // Initialize settings
- if (isButtonEnabled('settings')) {
- SettingsMenu.init(eventEmitter);
- }
-
- // Initialize profile
- if (isButtonEnabled('profile')) {
- Profile.init(eventEmitter);
- }
-
- // Initialize contact list view
- if (isButtonEnabled('contacts')) {
- ContactListView.init();
- }
- }
- };
-
- export default SidePanels;
|