You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SidePanels.js 642B

12345678910111213141516171819202122232425
  1. import Chat from './chat/Chat';
  2. import SettingsMenu from './settings/SettingsMenu';
  3. import Profile from './profile/Profile';
  4. import { isButtonEnabled } from '../../../react/features/toolbox';
  5. const SidePanels = {
  6. init(eventEmitter) {
  7. // Initialize chat
  8. if (isButtonEnabled('chat')) {
  9. Chat.init(eventEmitter);
  10. }
  11. // Initialize settings
  12. if (isButtonEnabled('settings')) {
  13. SettingsMenu.init(eventEmitter);
  14. }
  15. // Initialize profile
  16. if (isButtonEnabled('profile')) {
  17. Profile.init(eventEmitter);
  18. }
  19. }
  20. };
  21. export default SidePanels;