Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

chore: remove some cycles

Saúl Ibarra Corretgéa67d0fbf6cec
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 61bf12afaf..7880bc74d3 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -15,7 +15,7 @@ import {
dockToolbox,
setToolboxEnabled,
showToolbox
-} from '../../react/features/toolbox';
+} from '../../react/features/toolbox/actions.web';
import UIEvents from '../../service/UI/UIEvents';
import EtherpadManager from './etherpad/Etherpad';
diff --git a/modules/UI/etherpad/Etherpad.js b/modules/UI/etherpad/Etherpad.js
index e81c68f368..eb9182e144 100644
--- a/modules/UI/etherpad/Etherpad.js
+++ b/modules/UI/etherpad/Etherpad.js
@@ -1,7 +1,7 @@
/* global $, APP, interfaceConfig */
import { getSharedDocumentUrl, setDocumentEditingState } from '../../../react/features/etherpad';
-import { getToolboxHeight } from '../../../react/features/toolbox';
+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';
import Filmstrip from '../videolayout/Filmstrip';
import LargeContainer from '../videolayout/LargeContainer';
import VideoLayout from '../videolayout/VideoLayout';
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js
index fa64a2fd25..4984fff1e9 100644
--- a/modules/UI/shared_video/SharedVideo.js
+++ b/modules/UI/shared_video/SharedVideo.js
@@ -12,12 +12,9 @@ import {
participantLeft,
pinParticipant
} from '../../../react/features/base/participants';
-import {
- dockToolbox,
- getToolboxHeight,
- showToolbox
-} from '../../../react/features/toolbox';
-import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player';
+import { dockToolbox, showToolbox } from '../../../react/features/toolbox/actions.web';
+import { getToolboxHeight } from '../../../react/features/toolbox/functions.web';
+import { YOUTUBE_PARTICIPANT_NAME } from '../../../react/features/youtube-player/constants';
import UIEvents from '../../../service/UI/UIEvents';
import UIUtil from '../util/UIUtil';
import Filmstrip from '../videolayout/Filmstrip';
diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.js
index 0c17a3dc03..0a4c0ce4d1 100644
--- a/react/features/base/participants/components/ParticipantView.native.js
+++ b/react/features/base/participants/components/ParticipantView.native.js
@@ -3,7 +3,7 @@
import React, { Component } from 'react';
import { Text, View } from 'react-native';
-import { YoutubeLargeVideo } from '../../../youtube-player';
+import { YoutubeLargeVideo } from '../../../youtube-player/components';
import { Avatar } from '../../avatar';
import { translate } from '../../i18n';
import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet';
diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.js
index da067d95ea..dd361f1b89 100644
--- a/react/features/base/premeeting/components/web/PreMeetingScreen.js
+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js
@@ -2,7 +2,7 @@
import React, { PureComponent } from 'react';
-import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox';
+import { AudioSettingsButton, VideoSettingsButton } from '../../../../toolbox/components/web';
import CopyMeetingUrl from './CopyMeetingUrl';
import Preview from './Preview';
diff --git a/react/features/base/toolbox/index.js b/react/features/base/toolbox/index.js
deleted file mode 100644
index 68ddef9ba1..0000000000
--- a/react/features/base/toolbox/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// @flow
-
-export * from './components';
diff --git a/react/features/blur/components/VideoBlurButton.js b/react/features/blur/components/VideoBlurButton.js
index fed02bfb95..52d62d202d 100644
--- a/react/features/blur/components/VideoBlurButton.js
+++ b/react/features/blur/components/VideoBlurButton.js
@@ -6,8 +6,8 @@ import { createVideoBlurEvent, sendAnalytics } from '../../analytics';
import { translate } from '../../base/i18n';
import { IconBlurBackground } from '../../base/icons';
import { connect } from '../../base/redux';
-import { AbstractButton, BetaTag } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, BetaTag } from '../../base/toolbox/components';
+import type { AbstractButtonProps } from '../../base/toolbox/components';
import { toggleBlurEffect } from '../actions';
/**
diff --git a/react/features/chat/components/PrivateMessageButton.js b/react/features/chat/components/PrivateMessageButton.js
index 8ee02cc492..aed6038017 100644
--- a/react/features/chat/components/PrivateMessageButton.js
+++ b/react/features/chat/components/PrivateMessageButton.js
@@ -4,7 +4,7 @@ import { translate } from '../../base/i18n';
import { IconMessage, IconReply } from '../../base/icons';
import { getParticipantById } from '../../base/participants';
import { connect } from '../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { setPrivateMessageRecipient } from '../actions';
export type Props = AbstractButtonProps & {
diff --git a/react/features/chat/components/native/ChatButton.js b/react/features/chat/components/native/ChatButton.js
index bef5ddf31c..a87316e1c5 100644
--- a/react/features/chat/components/native/ChatButton.js
+++ b/react/features/chat/components/native/ChatButton.js
@@ -8,7 +8,7 @@ import { connect } from '../../../base/redux';
import {
AbstractButton,
type AbstractButtonProps
-} from '../../../base/toolbox';
+} from '../../../base/toolbox/components';
import { openDisplayNamePrompt } from '../../../display-name';
import { CHAT_VIEW_MODAL_ID } from '../../constants';
import { getUnreadCount } from '../../functions';
diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js
index c172876244..538fadb378 100644
--- a/react/features/chat/middleware.js
+++ b/react/features/chat/middleware.js
@@ -18,7 +18,8 @@ import {
} from '../base/participants';
import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
import { playSound, registerSound, unregisterSound } from '../base/sounds';
-import { isButtonEnabled, showToolbox } from '../toolbox';
+import { showToolbox } from '../toolbox/actions';
+import { isButtonEnabled } from '../toolbox/functions';
import { SEND_MESSAGE, SET_PRIVATE_MESSAGE_RECIPIENT } from './actionTypes';
import { addMessage, clearMessages, toggleChat } from './actions';
diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.js
index d7960b5986..c97143833d 100644
--- a/react/features/conference/components/native/Conference.js
+++ b/react/features/conference/components/native/Conference.js
@@ -25,7 +25,9 @@ import { LargeVideo } from '../../../large-video';
import { KnockingParticipantList } from '../../../lobby';
import { BackButtonRegistry } from '../../../mobile/back-button';
import { Captions } from '../../../subtitles';
-import { isToolboxVisible, setToolboxVisible, Toolbox } from '../../../toolbox';
+import { setToolboxVisible } from '../../../toolbox/actions';
+import { Toolbox } from '../../../toolbox/components/native';
+import { isToolboxVisible } from '../../../toolbox/functions';
import {
AbstractConference,
abstractMapStateToProps
diff --git a/react/features/conference/components/native/NavigationBar.js b/react/features/conference/components/native/NavigationBar.js
index 7088875ac0..3a73af4d9b 100644
--- a/react/features/conference/components/native/NavigationBar.js
+++ b/react/features/conference/components/native/NavigationBar.js
@@ -8,7 +8,7 @@ import { getConferenceName } from '../../../base/conference';
import { getFeatureFlag, CONFERENCE_TIMER_ENABLED, MEETING_NAME_ENABLED } from '../../../base/flags';
import { connect } from '../../../base/redux';
import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
-import { isToolboxVisible } from '../../../toolbox';
+import { isToolboxVisible } from '../../../toolbox/functions.native';
import ConferenceTimer from '../ConferenceTimer';
import styles, { NAVBAR_GRADIENT_COLORS } from './styles';
diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js
index c4a47e8edd..bd39e24ed8 100644
--- a/react/features/conference/components/web/Conference.js
+++ b/react/features/conference/components/web/Conference.js
@@ -14,12 +14,8 @@ import { CalleeInfoContainer } from '../../../invite';
import { LargeVideo } from '../../../large-video';
import { KnockingParticipantList, LobbyScreen } from '../../../lobby';
import { Prejoin, isPrejoinPageVisible } from '../../../prejoin';
-import {
- Toolbox,
- fullScreenChanged,
- setToolboxAlwaysVisible,
- showToolbox
-} from '../../../toolbox';
+import { fullScreenChanged, setToolboxAlwaysVisible, showToolbox } from '../../../toolbox/actions.web';
+import { Toolbox } from '../../../toolbox/components/web';
import { LAYOUTS, getCurrentLayout } from '../../../video-layout';
import { maybeShowSuboptimalExperienceNotification } from '../../functions';
import {
diff --git a/react/features/conference/components/web/InviteMore.js b/react/features/conference/components/web/InviteMore.js
index 388ac67aa3..0633ed9a5b 100644
--- a/react/features/conference/components/web/InviteMore.js
+++ b/react/features/conference/components/web/InviteMore.js
@@ -7,10 +7,7 @@ import { Icon, IconInviteMore } from '../../../base/icons';
import { getParticipantCount } from '../../../base/participants';
import { connect } from '../../../base/redux';
import { beginAddPeople } from '../../../invite';
-import {
- isButtonEnabled,
- isToolboxVisible
-} from '../../../toolbox';
+import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web';
import { shouldDisplayTileView } from '../../../video-layout/functions';
declare var interfaceConfig: Object;
diff --git a/react/features/conference/components/web/Subject.js b/react/features/conference/components/web/Subject.js
index a0692c0aaa..4405a89639 100644
--- a/react/features/conference/components/web/Subject.js
+++ b/react/features/conference/components/web/Subject.js
@@ -5,7 +5,7 @@ import React, { Component } from 'react';
import { getConferenceName } from '../../../base/conference/functions';
import { getParticipantCount } from '../../../base/participants/functions';
import { connect } from '../../../base/redux';
-import { isToolboxVisible } from '../../../toolbox';
+import { isToolboxVisible } from '../../../toolbox/functions.web';
import ConferenceTimer from '../ConferenceTimer';
import ParticipantsCount from './ParticipantsCount';
diff --git a/react/features/conference/middleware.js b/react/features/conference/middleware.js
index b7d131105b..4b3f854282 100644
--- a/react/features/conference/middleware.js
+++ b/react/features/conference/middleware.js
@@ -13,7 +13,7 @@ import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
import { SET_REDUCED_UI } from '../base/responsive-ui';
import { FeedbackDialog } from '../feedback';
import { setFilmstripEnabled } from '../filmstrip';
-import { setToolboxEnabled } from '../toolbox';
+import { setToolboxEnabled } from '../toolbox/actions';
import { notifyKickedOut } from './actions';
diff --git a/react/features/etherpad/components/SharedDocumentButton.js b/react/features/etherpad/components/SharedDocumentButton.js
index 5e88513ddd..202902859c 100644
--- a/react/features/etherpad/components/SharedDocumentButton.js
+++ b/react/features/etherpad/components/SharedDocumentButton.js
@@ -6,7 +6,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
import { translate } from '../../base/i18n';
import { IconShareDoc } from '../../base/icons';
import { connect } from '../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { toggleDocument } from '../actions';
diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js
index 26f9429a45..4765bf58af 100644
--- a/react/features/filmstrip/components/native/Thumbnail.js
+++ b/react/features/filmstrip/components/native/Thumbnail.js
@@ -21,7 +21,7 @@ import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';
import { ConnectionIndicator } from '../../../connection-indicator';
import { DisplayNameLabel } from '../../../display-name';
import { RemoteVideoMenu } from '../../../remote-video-menu';
-import { toggleToolboxVisible } from '../../../toolbox';
+import { toggleToolboxVisible } from '../../../toolbox/actions.native';
import AudioMutedIndicator from './AudioMutedIndicator';
import DominantSpeakerIndicator from './DominantSpeakerIndicator';
diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.js
index 7e5a599f3b..e8d01abe6b 100644
--- a/react/features/filmstrip/components/web/Filmstrip.js
+++ b/react/features/filmstrip/components/web/Filmstrip.js
@@ -12,7 +12,7 @@ import {
import { translate } from '../../../base/i18n';
import { Icon, IconMenuDown, IconMenuUp } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { dockToolbox } from '../../../toolbox';
+import { dockToolbox } from '../../../toolbox/actions.web';
import { getCurrentLayout, LAYOUTS } from '../../../video-layout';
import { setFilmstripHovered, setFilmstripVisible } from '../../actions';
import { shouldRemoteVideosBeVisible } from '../../functions';
diff --git a/react/features/filmstrip/components/web/Toolbar.js b/react/features/filmstrip/components/web/Toolbar.js
index 4853bb1382..9d59ffcf65 100644
--- a/react/features/filmstrip/components/web/Toolbar.js
+++ b/react/features/filmstrip/components/web/Toolbar.js
@@ -8,7 +8,7 @@ import {
AudioMuteButton,
HangupButton,
VideoMuteButton
-} from '../../../toolbox';
+} from '../../../toolbox/components';
declare var interfaceConfig: Object;
diff --git a/react/features/invite/components/add-people-dialog/native/InviteButton.js b/react/features/invite/components/add-people-dialog/native/InviteButton.js
index 1abf9bccc0..23f75c3a9b 100644
--- a/react/features/invite/components/add-people-dialog/native/InviteButton.js
+++ b/react/features/invite/components/add-people-dialog/native/InviteButton.js
@@ -6,8 +6,7 @@ import { getFeatureFlag, INVITE_ENABLED } from '../../../../base/flags';
import { translate } from '../../../../base/i18n';
import { IconAddPeople } from '../../../../base/icons';
import { connect } from '../../../../base/redux';
-import { AbstractButton } from '../../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
import { doInvitePeople } from '../../../actions.native';
type Props = AbstractButtonProps & {
diff --git a/react/features/lobby/components/web/KnockingParticipantList.js b/react/features/lobby/components/web/KnockingParticipantList.js
index 952d7d193f..565628b6a8 100644
--- a/react/features/lobby/components/web/KnockingParticipantList.js
+++ b/react/features/lobby/components/web/KnockingParticipantList.js
@@ -5,7 +5,7 @@ import React from 'react';
import { Avatar } from '../../../base/avatar';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
-import { isToolboxVisible } from '../../../toolbox';
+import { isToolboxVisible } from '../../../toolbox/functions.web';
import AbstractKnockingParticipantList, {
mapStateToProps as abstractMapStateToProps,
type Props as AbstractProps
diff --git a/react/features/local-recording/components/LocalRecordingButton.native.js b/react/features/local-recording/components/LocalRecordingButton.native.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/react/features/local-recording/components/LocalRecordingButton.js b/react/features/local-recording/components/LocalRecordingButton.web.js
similarity index 96%
rename from react/features/local-recording/components/LocalRecordingButton.js
rename to react/features/local-recording/components/LocalRecordingButton.web.js
index aeb61fc0e4..2b174f4455 100644
--- a/react/features/local-recording/components/LocalRecordingButton.js
+++ b/react/features/local-recording/components/LocalRecordingButton.web.js
@@ -4,7 +4,7 @@ import React, { Component } from 'react';
import { translate } from '../../base/i18n';
import { IconRec } from '../../base/icons';
-import { ToolbarButton } from '../../toolbox';
+import { ToolbarButton } from '../../toolbox/components/web';
/**
* The type of the React {@code Component} state of
diff --git a/react/features/mobile/audio-mode/components/AudioRouteButton.js b/react/features/mobile/audio-mode/components/AudioRouteButton.js
index a5207b079d..bdb782cdcd 100644
--- a/react/features/mobile/audio-mode/components/AudioRouteButton.js
+++ b/react/features/mobile/audio-mode/components/AudioRouteButton.js
@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { IconAudioRoute } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import AudioRoutePickerDialog from './AudioRoutePickerDialog';
diff --git a/react/features/mobile/incoming-call/components/AnswerButton.js b/react/features/mobile/incoming-call/components/AnswerButton.js
index 783af7f5d7..9d72be7e57 100644
--- a/react/features/mobile/incoming-call/components/AnswerButton.js
+++ b/react/features/mobile/incoming-call/components/AnswerButton.js
@@ -3,8 +3,7 @@
import { translate } from '../../../base/i18n';
import { IconHangup } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { incomingCallAnswered } from '../actions';
/**
diff --git a/react/features/mobile/incoming-call/components/DeclineButton.js b/react/features/mobile/incoming-call/components/DeclineButton.js
index 3e48e3c63f..71763f9f03 100644
--- a/react/features/mobile/incoming-call/components/DeclineButton.js
+++ b/react/features/mobile/incoming-call/components/DeclineButton.js
@@ -3,8 +3,7 @@
import { translate } from '../../../base/i18n';
import { IconHangup } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { incomingCallDeclined } from '../actions';
/**
diff --git a/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js b/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js
index 63220a56eb..280fd121f0 100644
--- a/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js
+++ b/react/features/mobile/picture-in-picture/components/PictureInPictureButton.js
@@ -6,8 +6,7 @@ import { PIP_ENABLED, getFeatureFlag } from '../../../base/flags';
import { translate } from '../../../base/i18n';
import { IconMenuDown } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { enterPictureInPicture } from '../actions';
type Props = AbstractButtonProps & {
diff --git a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
index a3b49fe0c6..3faffbfe4a 100644
--- a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
+++ b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js
@@ -4,10 +4,7 @@ import { openDialog } from '../../../base/dialog';
import { IconLiveStreaming } from '../../../base/icons';
import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import { getLocalParticipant } from '../../../base/participants';
-import {
- AbstractButton,
- type AbstractButtonProps
-} from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { getActiveSession } from '../../functions';
import {
diff --git a/react/features/recording/components/Recording/AbstractRecordButton.js b/react/features/recording/components/Recording/AbstractRecordButton.js
index 8f669ad620..7c23f26e87 100644
--- a/react/features/recording/components/Recording/AbstractRecordButton.js
+++ b/react/features/recording/components/Recording/AbstractRecordButton.js
@@ -11,10 +11,7 @@ import {
getLocalParticipant,
isLocalParticipantModerator
} from '../../../base/participants';
-import {
- AbstractButton,
- type AbstractButtonProps
-} from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { getActiveSession } from '../../functions';
import { StartRecordingDialog, StopRecordingDialog } from './_';
diff --git a/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js b/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js
index af49c0773e..d3e2f663da 100644
--- a/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js
+++ b/react/features/remote-video-menu/components/AbstractGrantModeratorButton.js
@@ -8,8 +8,7 @@ import {
isParticipantModerator,
PARTICIPANT_ROLE
} from '../../base/participants';
-import { AbstractButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { GrantModeratorDialog } from '.';
diff --git a/react/features/remote-video-menu/components/AbstractKickButton.js b/react/features/remote-video-menu/components/AbstractKickButton.js
index c71c20bf40..51701e00e6 100644
--- a/react/features/remote-video-menu/components/AbstractKickButton.js
+++ b/react/features/remote-video-menu/components/AbstractKickButton.js
@@ -2,8 +2,7 @@
import { openDialog } from '../../base/dialog';
import { IconKick } from '../../base/icons';
-import { AbstractButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { KickRemoteParticipantDialog } from '.';
diff --git a/react/features/remote-video-menu/components/AbstractMuteButton.js b/react/features/remote-video-menu/components/AbstractMuteButton.js
index edee3b4e9d..5b9e73c90a 100644
--- a/react/features/remote-video-menu/components/AbstractMuteButton.js
+++ b/react/features/remote-video-menu/components/AbstractMuteButton.js
@@ -7,10 +7,7 @@ import {
import { openDialog } from '../../base/dialog';
import { IconMicDisabled } from '../../base/icons';
import { MEDIA_TYPE } from '../../base/media';
-import {
- AbstractButton,
- type AbstractButtonProps
-} from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { isRemoteTrackMuted } from '../../base/tracks';
import { MuteRemoteParticipantDialog } from '.';
diff --git a/react/features/remote-video-menu/components/native/PinButton.js b/react/features/remote-video-menu/components/native/PinButton.js
index 4949917561..17b6d1ab6d 100644
--- a/react/features/remote-video-menu/components/native/PinButton.js
+++ b/react/features/remote-video-menu/components/native/PinButton.js
@@ -4,7 +4,7 @@ import { translate } from '../../../base/i18n';
import { IconPin } from '../../../base/icons';
import { pinParticipant } from '../../../base/participants';
import { connect } from '../../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { shouldDisplayTileView } from '../../../video-layout/functions';
export type Props = AbstractButtonProps & {
diff --git a/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js b/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js
index c9f036b4e0..1c3725dc5f 100644
--- a/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js
+++ b/react/features/remote-video-menu/components/web/PrivateMessageMenuButton.js
@@ -10,7 +10,7 @@ import {
_mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps
} from '../../../chat/components/PrivateMessageButton';
-import { isButtonEnabled } from '../../../toolbox';
+import { isButtonEnabled } from '../../../toolbox/functions.web';
import RemoteVideoMenuButton from './RemoteVideoMenuButton';
diff --git a/react/features/room-lock/components/RoomLockButton.js b/react/features/room-lock/components/RoomLockButton.js
index ce092de184..fdae565c94 100644
--- a/react/features/room-lock/components/RoomLockButton.js
+++ b/react/features/room-lock/components/RoomLockButton.js
@@ -5,8 +5,7 @@ import { translate } from '../../base/i18n';
import { IconRoomLock, IconRoomUnlock } from '../../base/icons';
import { isLocalParticipantModerator } from '../../base/participants';
import { connect } from '../../base/redux';
-import { AbstractButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { beginRoomLockRequest, unlockRoom } from '../actions';
type Props = AbstractButtonProps & {
diff --git a/react/features/security/components/security-dialog/SecurityDialogButton.js b/react/features/security/components/security-dialog/SecurityDialogButton.js
index 154b0fa813..247cff1d09 100644
--- a/react/features/security/components/security-dialog/SecurityDialogButton.js
+++ b/react/features/security/components/security-dialog/SecurityDialogButton.js
@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';
import { translate } from '../../../base/i18n';
import { IconSecurityOff, IconSecurityOn } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { toggleSecurityDialog } from '../../actions';
diff --git a/react/features/settings/components/web/SettingsButton.js b/react/features/settings/components/web/SettingsButton.js
index f7791799ef..37491027ea 100644
--- a/react/features/settings/components/web/SettingsButton.js
+++ b/react/features/settings/components/web/SettingsButton.js
@@ -4,8 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../../analytics';
import { translate } from '../../../base/i18n';
import { IconSettings } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { openDeviceSelectionPopup } from '../../../device-selection';
import { openSettingsDialog } from '../../actions';
import { SETTINGS_TABS } from '../../constants';
diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.js b/react/features/subtitles/components/AbstractClosedCaptionButton.js
index 355c8a0fd3..6fc83bab2d 100644
--- a/react/features/subtitles/components/AbstractClosedCaptionButton.js
+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.js
@@ -2,7 +2,7 @@
import { createToolbarEvent, sendAnalytics } from '../../analytics';
import { isLocalParticipantModerator } from '../../base/participants';
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { toggleRequestingSubtitles } from '../actions';
export type AbstractProps = AbstractButtonProps & {
diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.js
index 58ec049e57..4c3765fe17 100644
--- a/react/features/toolbox/components/AudioMuteButton.js
+++ b/react/features/toolbox/components/AudioMuteButton.js
@@ -9,8 +9,8 @@ import {
import { translate } from '../../base/i18n';
import { MEDIA_TYPE } from '../../base/media';
import { connect } from '../../base/redux';
-import { AbstractAudioMuteButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractAudioMuteButton } from '../../base/toolbox/components';
+import type { AbstractButtonProps } from '../../base/toolbox/components';
import { isLocalTrackMuted } from '../../base/tracks';
import { muteLocal } from '../../remote-video-menu/actions';
diff --git a/react/features/toolbox/components/DownloadButton.js b/react/features/toolbox/components/DownloadButton.js
index 71c66c7619..36b85a3179 100644
--- a/react/features/toolbox/components/DownloadButton.js
+++ b/react/features/toolbox/components/DownloadButton.js
@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
import { translate } from '../../base/i18n';
import { IconDownload } from '../../base/icons';
import { connect } from '../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { openURLInBrowser } from '../../base/util';
diff --git a/react/features/toolbox/components/HangupButton.js b/react/features/toolbox/components/HangupButton.js
index 2b2d8911f5..aecca7ff69 100644
--- a/react/features/toolbox/components/HangupButton.js
+++ b/react/features/toolbox/components/HangupButton.js
@@ -7,8 +7,8 @@ import { appNavigate } from '../../app/actions';
import { disconnect } from '../../base/connection';
import { translate } from '../../base/i18n';
import { connect } from '../../base/redux';
-import { AbstractHangupButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractHangupButton } from '../../base/toolbox/components';
+import type { AbstractButtonProps } from '../../base/toolbox/components';
/**
* The type of the React {@code Component} props of {@link HangupButton}.
diff --git a/react/features/toolbox/components/HelpButton.js b/react/features/toolbox/components/HelpButton.js
index a23afcc59d..b9057ef929 100644
--- a/react/features/toolbox/components/HelpButton.js
+++ b/react/features/toolbox/components/HelpButton.js
@@ -4,7 +4,7 @@ import { createToolbarEvent, sendAnalytics } from '../../analytics';
import { translate } from '../../base/i18n';
import { IconHelp } from '../../base/icons';
import { connect } from '../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { openURLInBrowser } from '../../base/util';
diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.js
index 1f119531a2..ae710bc3c2 100644
--- a/react/features/toolbox/components/VideoMuteButton.js
+++ b/react/features/toolbox/components/VideoMuteButton.js
@@ -16,8 +16,8 @@ import {
setVideoMuted
} from '../../base/media';
import { connect } from '../../base/redux';
-import { AbstractVideoMuteButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractVideoMuteButton } from '../../base/toolbox/components';
+import type { AbstractButtonProps } from '../../base/toolbox/components';
import { getLocalVideoType, isLocalVideoTrackMuted } from '../../base/tracks';
declare var APP: Object;
diff --git a/react/features/toolbox/components/native/AudioOnlyButton.js b/react/features/toolbox/components/native/AudioOnlyButton.js
index 49def738bb..29fe05ea55 100644
--- a/react/features/toolbox/components/native/AudioOnlyButton.js
+++ b/react/features/toolbox/components/native/AudioOnlyButton.js
@@ -4,8 +4,7 @@ import { toggleAudioOnly } from '../../../base/audio-only';
import { translate } from '../../../base/i18n';
import { IconAudioOnly, IconAudioOnlyOff } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
/**
* The type of the React {@code Component} props of {@link AudioOnlyButton}.
diff --git a/react/features/toolbox/components/native/MoreOptionsButton.js b/react/features/toolbox/components/native/MoreOptionsButton.js
index 3e969288d1..7357402661 100644
--- a/react/features/toolbox/components/native/MoreOptionsButton.js
+++ b/react/features/toolbox/components/native/MoreOptionsButton.js
@@ -2,8 +2,7 @@
import { translate } from '../../../base/i18n';
import { IconMenu } from '../../../base/icons';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
type Props = AbstractButtonProps;
diff --git a/react/features/toolbox/components/native/OverflowMenu.js b/react/features/toolbox/components/native/OverflowMenu.js
index 1167a586d5..092cd1b686 100644
--- a/react/features/toolbox/components/native/OverflowMenu.js
+++ b/react/features/toolbox/components/native/OverflowMenu.js
@@ -17,7 +17,7 @@ import { LiveStreamButton, RecordButton } from '../../../recording';
import { RoomLockButton } from '../../../room-lock';
import { ClosedCaptionButton } from '../../../subtitles';
import { TileViewButton } from '../../../video-layout';
-import { VideoShareButton } from '../../../youtube-player';
+import { VideoShareButton } from '../../../youtube-player/components';
import HelpButton from '../HelpButton';
import AudioOnlyButton from './AudioOnlyButton';
diff --git a/react/features/toolbox/components/native/OverflowMenuButton.js b/react/features/toolbox/components/native/OverflowMenuButton.js
index 9f7487771f..09c6df1544 100644
--- a/react/features/toolbox/components/native/OverflowMenuButton.js
+++ b/react/features/toolbox/components/native/OverflowMenuButton.js
@@ -4,8 +4,7 @@ import { openDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { IconMenuThumb } from '../../../base/icons';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import OverflowMenu from './OverflowMenu';
diff --git a/react/features/toolbox/components/native/RaiseHandButton.js b/react/features/toolbox/components/native/RaiseHandButton.js
index b6bc11030b..72df7ab190 100644
--- a/react/features/toolbox/components/native/RaiseHandButton.js
+++ b/react/features/toolbox/components/native/RaiseHandButton.js
@@ -14,8 +14,7 @@ import {
participantUpdated
} from '../../../base/participants';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
/**
* The type of the React {@code Component} props of {@link RaiseHandButton}.
diff --git a/react/features/toolbox/components/native/ToggleCameraButton.js b/react/features/toolbox/components/native/ToggleCameraButton.js
index f5ec0a2c7c..0eec5d67b1 100644
--- a/react/features/toolbox/components/native/ToggleCameraButton.js
+++ b/react/features/toolbox/components/native/ToggleCameraButton.js
@@ -4,8 +4,7 @@ import { translate } from '../../../base/i18n';
import { IconSwitchCamera } from '../../../base/icons';
import { MEDIA_TYPE, toggleCameraFacingMode } from '../../../base/media';
import { connect } from '../../../base/redux';
-import { AbstractButton } from '../../../base/toolbox';
-import type { AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { isLocalTrackMuted } from '../../../base/tracks';
/**
diff --git a/react/features/toolbox/components/web/AudioSettingsButton.js b/react/features/toolbox/components/web/AudioSettingsButton.js
index 63acf8cbd7..4b950b01c6 100644
--- a/react/features/toolbox/components/web/AudioSettingsButton.js
+++ b/react/features/toolbox/components/web/AudioSettingsButton.js
@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';
import { IconArrowDown } from '../../../base/icons';
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
import { connect } from '../../../base/redux';
-import { ToolboxButtonWithIcon } from '../../../base/toolbox';
+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';
import { getMediaPermissionPromptVisibility } from '../../../overlay';
import { AudioSettingsPopup, toggleAudioSettings } from '../../../settings';
import { isAudioSettingsButtonDisabled } from '../../functions';
diff --git a/react/features/toolbox/components/web/MuteEveryoneButton.js b/react/features/toolbox/components/web/MuteEveryoneButton.js
index 32b486ed87..2524c477da 100644
--- a/react/features/toolbox/components/web/MuteEveryoneButton.js
+++ b/react/features/toolbox/components/web/MuteEveryoneButton.js
@@ -6,7 +6,7 @@ import { translate } from '../../../base/i18n';
import { IconMuteEveryone } from '../../../base/icons';
import { getLocalParticipant, PARTICIPANT_ROLE } from '../../../base/participants';
import { connect } from '../../../base/redux';
-import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { MuteEveryoneDialog } from '../../../remote-video-menu';
type Props = AbstractButtonProps & {
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 741725f7c4..5e9dc539dd 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -30,7 +30,7 @@ import {
participantUpdated
} from '../../../base/participants';
import { connect, equals } from '../../../base/redux';
-import { OverflowMenuItem } from '../../../base/toolbox';
+import { OverflowMenuItem } from '../../../base/toolbox/components';
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';
import { VideoBlurButton } from '../../../blur';
import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat';
diff --git a/react/features/toolbox/components/web/VideoSettingsButton.js b/react/features/toolbox/components/web/VideoSettingsButton.js
index 31693e731e..d3ebbe1f31 100644
--- a/react/features/toolbox/components/web/VideoSettingsButton.js
+++ b/react/features/toolbox/components/web/VideoSettingsButton.js
@@ -6,7 +6,7 @@ import { isMobileBrowser } from '../../../base/environment/utils';
import { IconArrowDown } from '../../../base/icons';
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
import { connect } from '../../../base/redux';
-import { ToolboxButtonWithIcon } from '../../../base/toolbox';
+import { ToolboxButtonWithIcon } from '../../../base/toolbox/components';
import { getLocalJitsiVideoTrack } from '../../../base/tracks';
import { getMediaPermissionPromptVisibility } from '../../../overlay';
import { toggleVideoSettings, VideoSettingsPopup } from '../../../settings';
diff --git a/react/features/toolbox/index.js b/react/features/toolbox/index.js
deleted file mode 100644
index b845e8859c..0000000000
--- a/react/features/toolbox/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from './actions';
-export * from './actionTypes';
-export * from './components';
-export * from './functions';
diff --git a/react/features/video-layout/components/TileViewButton.js b/react/features/video-layout/components/TileViewButton.js
index 502715e984..f7cbcb4c56 100644
--- a/react/features/video-layout/components/TileViewButton.js
+++ b/react/features/video-layout/components/TileViewButton.js
@@ -11,10 +11,7 @@ import { translate } from '../../base/i18n';
import { IconTileView } from '../../base/icons';
import { getParticipantCount } from '../../base/participants';
import { connect } from '../../base/redux';
-import {
- AbstractButton,
- type AbstractButtonProps
-} from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { setTileView } from '../actions';
import { shouldDisplayTileView } from '../functions';
import logger from '../logger';
diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js
index e382d313e9..642c8b167f 100644
--- a/react/features/video-layout/functions.js
+++ b/react/features/video-layout/functions.js
@@ -1,7 +1,7 @@
// @flow
import { getPinnedParticipant, getParticipantCount } from '../base/participants';
-import { isYoutubeVideoPlaying } from '../youtube-player';
+import { isYoutubeVideoPlaying } from '../youtube-player/functions';
import { LAYOUTS } from './constants';
diff --git a/react/features/youtube-player/components/VideoShareButton.js b/react/features/youtube-player/components/VideoShareButton.js
index 83907d1e3d..562df54bef 100644
--- a/react/features/youtube-player/components/VideoShareButton.js
+++ b/react/features/youtube-player/components/VideoShareButton.js
@@ -7,8 +7,7 @@ import { translate } from '../../base/i18n';
import { IconShareVideo } from '../../base/icons';
import { getLocalParticipant } from '../../base/participants';
import { connect } from '../../base/redux';
-import { AbstractButton } from '../../base/toolbox';
-import type { AbstractButtonProps } from '../../base/toolbox';
+import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { toggleSharedVideo } from '../actions';
/**
diff --git a/react/features/youtube-player/index.js b/react/features/youtube-player/index.js
deleted file mode 100644
index 8a597c6ea5..0000000000
--- a/react/features/youtube-player/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// @flow
-
-export * from './actions';
-export * from './actionTypes';
-export * from './components';
-export * from './constants';
-export * from './functions';