mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 13:37:51 +00:00
The panel will appear on the right side after the participant pane panel. Currently the panel is disabled by default and the components that are rendered in the panel are empty (null). The panel is easily customizable by adding some content in the CustomPanel component.
41 lines
769 B
TypeScript
41 lines
769 B
TypeScript
import {
|
|
CUSTOM_PANEL_CLOSE,
|
|
CUSTOM_PANEL_OPEN,
|
|
SET_CUSTOM_PANEL_ENABLED
|
|
} from './actionTypes';
|
|
|
|
/**
|
|
* Action to close the custom panel.
|
|
*
|
|
* @returns {Object} The action object.
|
|
*/
|
|
export function close() {
|
|
return {
|
|
type: CUSTOM_PANEL_CLOSE
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Action to open the custom panel.
|
|
*
|
|
* @returns {Object} The action object.
|
|
*/
|
|
export function open() {
|
|
return {
|
|
type: CUSTOM_PANEL_OPEN
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Action to enable or disable the custom panel dynamically.
|
|
*
|
|
* @param {boolean} enabled - Whether the custom panel should be enabled.
|
|
* @returns {Object} The action object.
|
|
*/
|
|
export function setCustomPanelEnabled(enabled: boolean) {
|
|
return {
|
|
type: SET_CUSTOM_PANEL_ENABLED,
|
|
enabled
|
|
};
|
|
}
|