2022-08-30 08:47:55 +00:00
|
|
|
/* global APP, config */
|
2017-01-10 21:55:31 +00:00
|
|
|
|
2016-11-11 15:00:54 +00:00
|
|
|
|
2017-10-12 23:02:29 +00:00
|
|
|
const UI = {};
|
2015-01-07 14:54:03 +00:00
|
|
|
|
2021-11-10 10:11:29 +00:00
|
|
|
import Logger from '@jitsi/logger';
|
2020-05-20 10:57:03 +00:00
|
|
|
import EventEmitter from 'events';
|
2022-08-30 08:47:55 +00:00
|
|
|
import $ from 'jquery';
|
2015-12-14 12:26:50 +00:00
|
|
|
|
2020-07-31 11:53:19 +00:00
|
|
|
import { isMobileBrowser } from '../../react/features/base/environment/utils';
|
2021-03-23 12:11:11 +00:00
|
|
|
import { setColorAlpha } from '../../react/features/base/util';
|
2019-10-08 12:27:35 +00:00
|
|
|
import { setDocumentUrl } from '../../react/features/etherpad';
|
2018-09-10 22:10:45 +00:00
|
|
|
import { setFilmstripVisible } from '../../react/features/filmstrip';
|
2021-11-24 11:05:27 +00:00
|
|
|
import {
|
2022-09-27 07:10:28 +00:00
|
|
|
NOTIFICATION_TIMEOUT_TYPE,
|
2021-11-24 11:05:27 +00:00
|
|
|
joinLeaveNotificationsDisabled,
|
|
|
|
setNotificationsEnabled,
|
2022-09-27 07:10:28 +00:00
|
|
|
showNotification
|
2021-11-24 11:05:27 +00:00
|
|
|
} from '../../react/features/notifications';
|
2017-02-16 23:02:40 +00:00
|
|
|
import {
|
2017-04-01 05:52:40 +00:00
|
|
|
dockToolbox,
|
2018-05-16 14:00:16 +00:00
|
|
|
setToolboxEnabled,
|
2017-04-01 05:52:40 +00:00
|
|
|
showToolbox
|
2020-07-24 12:14:33 +00:00
|
|
|
} from '../../react/features/toolbox/actions.web';
|
2020-05-20 10:57:03 +00:00
|
|
|
import UIEvents from '../../service/UI/UIEvents';
|
|
|
|
|
|
|
|
import EtherpadManager from './etherpad/Etherpad';
|
|
|
|
import messageHandler from './util/MessageHandler';
|
|
|
|
import UIUtil from './util/UIUtil';
|
|
|
|
import VideoLayout from './videolayout/VideoLayout';
|
2017-02-16 23:02:40 +00:00
|
|
|
|
2020-05-20 10:57:03 +00:00
|
|
|
const logger = Logger.getLogger(__filename);
|
2017-10-12 23:02:29 +00:00
|
|
|
|
2017-06-14 18:13:41 +00:00
|
|
|
UI.messageHandler = messageHandler;
|
2017-10-12 23:02:29 +00:00
|
|
|
|
|
|
|
const eventEmitter = new EventEmitter();
|
2016-04-07 17:08:00 +00:00
|
|
|
|
2015-12-03 13:11:01 +00:00
|
|
|
UI.eventEmitter = eventEmitter;
|
2015-01-07 14:54:03 +00:00
|
|
|
|
2015-12-25 16:55:45 +00:00
|
|
|
let etherpadManager;
|
|
|
|
|
2017-10-12 23:02:29 +00:00
|
|
|
const UIListeners = new Map([
|
|
|
|
[
|
|
|
|
UIEvents.ETHERPAD_CLICKED,
|
|
|
|
() => etherpadManager && etherpadManager.toggleEtherpad()
|
|
|
|
], [
|
|
|
|
UIEvents.TOGGLE_FILMSTRIP,
|
2018-09-10 22:10:45 +00:00
|
|
|
() => UI.toggleFilmstrip()
|
2017-10-12 23:02:29 +00:00
|
|
|
]
|
|
|
|
]);
|
2016-05-26 08:53:02 +00:00
|
|
|
|
2018-01-03 21:24:07 +00:00
|
|
|
/**
|
|
|
|
* Indicates if we're currently in full screen mode.
|
|
|
|
*
|
|
|
|
* @return {boolean} {true} to indicate that we're currently in full screen
|
|
|
|
* mode, {false} otherwise
|
|
|
|
*/
|
|
|
|
UI.isFullScreen = function() {
|
|
|
|
return UIUtil.isFullScreen();
|
|
|
|
};
|
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Notify user that server has shut down.
|
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.notifyGracefulShutdown = function() {
|
2017-11-03 19:05:03 +00:00
|
|
|
messageHandler.showError({
|
|
|
|
descriptionKey: 'dialog.gracefulShutdown',
|
|
|
|
titleKey: 'dialog.serviceUnavailable'
|
|
|
|
});
|
2015-11-30 15:24:42 +00:00
|
|
|
};
|
2015-01-19 09:20:00 +00:00
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Notify user that reservation error happened.
|
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.notifyReservationError = function(code, msg) {
|
2017-11-03 19:05:03 +00:00
|
|
|
messageHandler.showError({
|
|
|
|
descriptionArguments: {
|
|
|
|
code,
|
|
|
|
msg
|
|
|
|
},
|
|
|
|
descriptionKey: 'dialog.reservationErrorMsg',
|
|
|
|
titleKey: 'dialog.reservationError'
|
|
|
|
});
|
2015-11-30 15:24:42 +00:00
|
|
|
};
|
|
|
|
|
2016-06-20 21:13:17 +00:00
|
|
|
/**
|
|
|
|
* Initialize conference UI.
|
2016-01-15 14:59:35 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.initConference = function() {
|
2016-09-08 18:16:23 +00:00
|
|
|
UI.showToolbar();
|
2015-11-30 15:24:42 +00:00
|
|
|
};
|
2015-07-29 19:39:09 +00:00
|
|
|
|
2016-01-11 20:26:04 +00:00
|
|
|
/**
|
|
|
|
* Starts the UI module and initializes all related components.
|
|
|
|
*
|
|
|
|
* @returns {boolean} true if the UI is ready and the conference should be
|
2017-05-26 16:28:14 +00:00
|
|
|
* established, false - otherwise (for example in the case of welcome page)
|
2016-01-11 20:26:04 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.start = function() {
|
2020-11-10 22:21:07 +00:00
|
|
|
VideoLayout.initLargeVideo();
|
2018-05-16 14:00:16 +00:00
|
|
|
|
|
|
|
// Do not animate the video area on UI start (second argument passed into
|
|
|
|
// resizeVideoArea) because the animation is not visible anyway. Plus with
|
|
|
|
// the current dom layout, the quality label is part of the video layout and
|
|
|
|
// will be seen animating in.
|
2020-02-10 15:27:43 +00:00
|
|
|
VideoLayout.resizeVideoArea();
|
2015-12-25 16:55:45 +00:00
|
|
|
|
2020-07-31 11:53:19 +00:00
|
|
|
if (isMobileBrowser()) {
|
|
|
|
$('body').addClass('mobile-browser');
|
|
|
|
} else {
|
|
|
|
$('body').addClass('desktop-browser');
|
2022-03-29 14:27:32 +00:00
|
|
|
}
|
2021-03-23 12:11:11 +00:00
|
|
|
|
2022-03-29 14:27:32 +00:00
|
|
|
if (config.backgroundAlpha !== undefined) {
|
|
|
|
const backgroundColor = $('body').css('background-color');
|
|
|
|
const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
|
2021-03-23 12:11:11 +00:00
|
|
|
|
2022-03-29 14:27:32 +00:00
|
|
|
$('body').css('background-color', alphaColor);
|
2020-07-31 11:53:19 +00:00
|
|
|
}
|
|
|
|
|
2020-11-10 22:21:07 +00:00
|
|
|
if (config.iAmRecorder) {
|
2018-08-29 17:24:25 +00:00
|
|
|
// in case of iAmSipGateway keep local video visible
|
|
|
|
if (!config.iAmSipGateway) {
|
2020-01-27 15:13:59 +00:00
|
|
|
APP.store.dispatch(setNotificationsEnabled(false));
|
2018-05-16 14:00:16 +00:00
|
|
|
}
|
2015-01-22 16:02:37 +00:00
|
|
|
|
2018-08-29 17:24:25 +00:00
|
|
|
APP.store.dispatch(setToolboxEnabled(false));
|
2018-03-07 00:28:19 +00:00
|
|
|
}
|
2017-02-15 21:39:16 +00:00
|
|
|
};
|
2016-06-13 21:11:44 +00:00
|
|
|
|
2017-02-15 21:39:16 +00:00
|
|
|
/**
|
|
|
|
* Setup some UI event listeners.
|
|
|
|
*/
|
|
|
|
UI.registerListeners
|
|
|
|
= () => UIListeners.forEach((value, key) => UI.addListener(key, value));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Setup some DOM event listeners.
|
|
|
|
*/
|
|
|
|
UI.bindEvents = () => {
|
2017-10-12 23:02:29 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2017-02-15 21:39:16 +00:00
|
|
|
function onResize() {
|
2020-01-24 16:28:47 +00:00
|
|
|
VideoLayout.onResize();
|
2017-02-15 21:39:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Resize and reposition videos in full screen mode.
|
|
|
|
$(document).on(
|
|
|
|
'webkitfullscreenchange mozfullscreenchange fullscreenchange',
|
2018-03-07 00:28:19 +00:00
|
|
|
onResize);
|
2017-02-15 21:39:16 +00:00
|
|
|
|
|
|
|
$(window).resize(onResize);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unbind some DOM event listeners.
|
|
|
|
*/
|
|
|
|
UI.unbindEvents = () => {
|
|
|
|
$(document).off(
|
|
|
|
'webkitfullscreenchange mozfullscreenchange fullscreenchange');
|
|
|
|
|
|
|
|
$(window).off('resize');
|
2015-01-07 14:54:03 +00:00
|
|
|
};
|
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Setup and show Etherpad.
|
|
|
|
* @param {string} name etherpad id
|
|
|
|
*/
|
2017-02-15 21:39:16 +00:00
|
|
|
UI.initEtherpad = name => {
|
2015-12-30 20:57:28 +00:00
|
|
|
if (etherpadManager || !config.etherpad_base || !name) {
|
2015-12-25 16:55:45 +00:00
|
|
|
return;
|
|
|
|
}
|
2016-11-11 15:00:54 +00:00
|
|
|
logger.log('Etherpad is enabled');
|
2017-02-16 23:02:40 +00:00
|
|
|
|
2019-10-08 12:27:35 +00:00
|
|
|
etherpadManager = new EtherpadManager(eventEmitter);
|
|
|
|
|
|
|
|
const url = new URL(name, config.etherpad_base);
|
|
|
|
|
|
|
|
APP.store.dispatch(setDocumentUrl(url.toString()));
|
2020-12-16 16:10:12 +00:00
|
|
|
|
|
|
|
if (config.openSharedDocumentOnJoin) {
|
|
|
|
etherpadManager.toggleEtherpad();
|
|
|
|
}
|
2015-12-25 16:55:45 +00:00
|
|
|
};
|
2015-01-07 14:54:03 +00:00
|
|
|
|
2016-03-24 01:43:29 +00:00
|
|
|
/**
|
|
|
|
* Returns the shared document manager object.
|
|
|
|
* @return {EtherpadManager} the shared document manager object
|
|
|
|
*/
|
2017-02-15 21:39:16 +00:00
|
|
|
UI.getSharedDocumentManager = () => etherpadManager;
|
2016-03-24 01:43:29 +00:00
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Show user on UI.
|
2016-09-16 20:17:00 +00:00
|
|
|
* @param {JitsiParticipant} user
|
2016-01-15 14:59:35 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.addUser = function(user) {
|
2017-11-27 23:05:53 +00:00
|
|
|
const status = user.getStatus();
|
2017-06-05 18:19:25 +00:00
|
|
|
|
2017-11-27 23:05:53 +00:00
|
|
|
if (status) {
|
|
|
|
// FIXME: move updateUserStatus in participantPresenceChanged action
|
|
|
|
UI.updateUserStatus(user, status);
|
|
|
|
}
|
2015-11-30 15:24:42 +00:00
|
|
|
};
|
|
|
|
|
2017-05-19 15:12:24 +00:00
|
|
|
/**
|
|
|
|
* Updates the user status.
|
|
|
|
*
|
|
|
|
* @param {JitsiParticipant} user - The user which status we need to update.
|
|
|
|
* @param {string} status - The new status.
|
|
|
|
*/
|
|
|
|
UI.updateUserStatus = (user, status) => {
|
2018-06-26 22:56:22 +00:00
|
|
|
const reduxState = APP.store.getState() || {};
|
|
|
|
const { calleeInfoVisible } = reduxState['features/invite'] || {};
|
|
|
|
|
2020-02-04 16:06:43 +00:00
|
|
|
// We hide status updates when join/leave notifications are disabled,
|
|
|
|
// as jigasi is the component with statuses and they are seen as join/leave notifications.
|
|
|
|
if (!status || calleeInfoVisible || joinLeaveNotificationsDisabled()) {
|
2017-08-23 18:41:55 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-10-12 23:02:29 +00:00
|
|
|
const displayName = user.getDisplayName();
|
|
|
|
|
2021-11-24 11:05:27 +00:00
|
|
|
APP.store.dispatch(showNotification({
|
|
|
|
titleKey: `${displayName} connected`,
|
|
|
|
descriptionKey: 'dialOut.statusMessage'
|
|
|
|
}, NOTIFICATION_TIMEOUT_TYPE.SHORT));
|
2017-05-19 15:12:24 +00:00
|
|
|
};
|
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
2017-04-10 17:59:44 +00:00
|
|
|
* Toggles filmstrip.
|
2016-01-15 14:59:35 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.toggleFilmstrip = function() {
|
2018-09-10 22:10:45 +00:00
|
|
|
const { visible } = APP.store.getState()['features/filmstrip'];
|
|
|
|
|
|
|
|
APP.store.dispatch(setFilmstripVisible(!visible));
|
2015-01-27 09:56:22 +00:00
|
|
|
};
|
|
|
|
|
2015-01-19 09:20:00 +00:00
|
|
|
/**
|
2016-01-06 22:39:13 +00:00
|
|
|
* Sets muted audio state for participant
|
2015-01-19 09:20:00 +00:00
|
|
|
*/
|
2020-10-26 17:58:37 +00:00
|
|
|
UI.setAudioMuted = function(id) {
|
|
|
|
// FIXME: Maybe this can be removed!
|
2016-02-09 10:19:43 +00:00
|
|
|
if (APP.conference.isLocalId(id)) {
|
2017-07-24 13:56:57 +00:00
|
|
|
APP.conference.updateAudioIconEnabled();
|
2016-02-09 10:19:43 +00:00
|
|
|
}
|
2015-11-30 11:54:54 +00:00
|
|
|
};
|
2015-01-19 09:20:00 +00:00
|
|
|
|
2016-01-06 22:39:13 +00:00
|
|
|
/**
|
|
|
|
* Sets muted video state for participant
|
|
|
|
*/
|
2020-10-23 22:48:56 +00:00
|
|
|
UI.setVideoMuted = function(id) {
|
2021-01-21 20:46:47 +00:00
|
|
|
VideoLayout._updateLargeVideoIfDisplayed(id, true);
|
|
|
|
|
2016-02-09 10:19:43 +00:00
|
|
|
if (APP.conference.isLocalId(id)) {
|
2017-07-24 13:56:57 +00:00
|
|
|
APP.conference.updateVideoIconEnabled();
|
2016-02-09 10:19:43 +00:00
|
|
|
}
|
2015-07-28 21:52:32 +00:00
|
|
|
};
|
2015-01-19 09:20:00 +00:00
|
|
|
|
2021-01-21 20:46:47 +00:00
|
|
|
UI.updateLargeVideo = (id, forceUpdate) => VideoLayout.updateLargeVideo(id, forceUpdate);
|
2017-04-05 15:14:26 +00:00
|
|
|
|
2016-03-24 01:43:29 +00:00
|
|
|
/**
|
|
|
|
* Adds a listener that would be notified on the given type of event.
|
|
|
|
*
|
|
|
|
* @param type the type of the event we're listening for
|
|
|
|
* @param listener a function that would be called when notified
|
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.addListener = function(type, listener) {
|
2015-01-22 16:02:37 +00:00
|
|
|
eventEmitter.on(type, listener);
|
2015-07-28 21:52:32 +00:00
|
|
|
};
|
2015-01-22 16:02:37 +00:00
|
|
|
|
2019-01-01 21:19:34 +00:00
|
|
|
/**
|
|
|
|
* Removes the all listeners for all events.
|
|
|
|
*
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
UI.removeAllListeners = function() {
|
|
|
|
eventEmitter.removeAllListeners();
|
|
|
|
};
|
|
|
|
|
2016-09-11 21:54:32 +00:00
|
|
|
/**
|
|
|
|
* Emits the event of given type by specifying the parameters in options.
|
|
|
|
*
|
|
|
|
* @param type the type of the event we're emitting
|
|
|
|
* @param options the parameters for the event
|
|
|
|
*/
|
2017-02-16 23:02:40 +00:00
|
|
|
UI.emitEvent = (type, ...options) => eventEmitter.emit(type, ...options);
|
2016-09-11 21:54:32 +00:00
|
|
|
|
2017-04-01 05:52:40 +00:00
|
|
|
// Used by torture.
|
|
|
|
UI.showToolbar = timeout => APP.store.dispatch(showToolbox(timeout));
|
2015-02-09 08:12:55 +00:00
|
|
|
|
2017-04-01 05:52:40 +00:00
|
|
|
// Used by torture.
|
|
|
|
UI.dockToolbar = dock => APP.store.dispatch(dockToolbox(dock));
|
2015-02-09 08:12:55 +00:00
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Notify user that connection failed.
|
|
|
|
* @param {string} stropheErrorMsg raw Strophe error message
|
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.notifyConnectionFailed = function(stropheErrorMsg) {
|
2017-11-03 19:05:03 +00:00
|
|
|
let descriptionKey;
|
|
|
|
let descriptionArguments;
|
2017-10-12 23:02:29 +00:00
|
|
|
|
2015-11-30 11:54:54 +00:00
|
|
|
if (stropheErrorMsg) {
|
2017-11-03 19:05:03 +00:00
|
|
|
descriptionKey = 'dialog.connectErrorWithMsg';
|
|
|
|
descriptionArguments = { msg: stropheErrorMsg };
|
2015-03-23 16:12:24 +00:00
|
|
|
} else {
|
2017-11-03 19:05:03 +00:00
|
|
|
descriptionKey = 'dialog.connectError';
|
2015-03-23 16:12:24 +00:00
|
|
|
}
|
2015-11-30 11:54:54 +00:00
|
|
|
|
2017-11-03 19:05:03 +00:00
|
|
|
messageHandler.showError({
|
|
|
|
descriptionArguments,
|
|
|
|
descriptionKey,
|
|
|
|
titleKey: 'connection.CONNFAIL'
|
|
|
|
});
|
2015-07-28 21:52:32 +00:00
|
|
|
};
|
2015-03-23 16:12:24 +00:00
|
|
|
|
2016-03-15 19:08:01 +00:00
|
|
|
|
|
|
|
/**
|
2016-03-17 18:23:03 +00:00
|
|
|
* Notify user that maximum users limit has been reached.
|
2016-03-15 19:08:01 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.notifyMaxUsersLimitReached = function() {
|
2017-11-03 19:05:03 +00:00
|
|
|
messageHandler.showError({
|
|
|
|
hideErrorSupportLink: true,
|
|
|
|
descriptionKey: 'dialog.maxUsersLimitReached',
|
|
|
|
titleKey: 'dialog.maxUsersLimitReachedTitle'
|
|
|
|
});
|
2015-07-28 21:52:32 +00:00
|
|
|
};
|
2015-03-23 16:12:24 +00:00
|
|
|
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.handleLastNEndpoints = function(leavingIds, enteringIds) {
|
2017-03-21 21:51:49 +00:00
|
|
|
VideoLayout.onLastNEndpointsChanged(leavingIds, enteringIds);
|
2015-11-30 11:54:54 +00:00
|
|
|
};
|
|
|
|
|
2016-01-15 14:59:35 +00:00
|
|
|
/**
|
|
|
|
* Update audio level visualization for specified user.
|
|
|
|
* @param {string} id user id
|
|
|
|
* @param {number} lvl audio level
|
|
|
|
*/
|
2017-03-31 17:54:58 +00:00
|
|
|
UI.setAudioLevel = (id, lvl) => VideoLayout.setAudioLevel(id, lvl);
|
2015-11-30 11:54:54 +00:00
|
|
|
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.notifyTokenAuthFailed = function() {
|
2017-11-03 19:05:03 +00:00
|
|
|
messageHandler.showError({
|
|
|
|
descriptionKey: 'dialog.tokenAuthFailed',
|
|
|
|
titleKey: 'dialog.tokenAuthFailedTitle'
|
|
|
|
});
|
2015-12-17 15:31:11 +00:00
|
|
|
};
|
|
|
|
|
2016-02-09 10:19:43 +00:00
|
|
|
/**
|
|
|
|
* Update list of available physical devices.
|
|
|
|
*/
|
2018-07-13 17:31:28 +00:00
|
|
|
UI.onAvailableDevicesChanged = function() {
|
2017-07-24 13:56:57 +00:00
|
|
|
APP.conference.updateAudioIconEnabled();
|
|
|
|
APP.conference.updateVideoIconEnabled();
|
2016-05-26 08:53:02 +00:00
|
|
|
};
|
|
|
|
|
2016-01-14 19:30:27 +00:00
|
|
|
/**
|
|
|
|
* Returns the id of the current video shown on large.
|
2016-01-15 14:59:35 +00:00
|
|
|
* Currently used by tests (torture).
|
2016-01-14 19:30:27 +00:00
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.getLargeVideoID = function() {
|
2016-01-14 19:30:27 +00:00
|
|
|
return VideoLayout.getLargeVideoID();
|
|
|
|
};
|
|
|
|
|
2016-03-18 20:00:55 +00:00
|
|
|
/**
|
|
|
|
* Returns the current video shown on large.
|
|
|
|
* Currently used by tests (torture).
|
|
|
|
*/
|
2017-10-12 23:02:29 +00:00
|
|
|
UI.getLargeVideo = function() {
|
2016-03-18 20:00:55 +00:00
|
|
|
return VideoLayout.getLargeVideo();
|
|
|
|
};
|
|
|
|
|
2017-06-14 18:13:41 +00:00
|
|
|
// TODO: Export every function separately. For now there is no point of doing
|
|
|
|
// this because we are importing everything.
|
|
|
|
export default UI;
|