snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
45
react/features/toolbox/actions.native.ts
Normal file
45
react/features/toolbox/actions.native.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { CUSTOM_BUTTON_PRESSED } from './actionTypes';
|
||||
|
||||
export * from './actions.any';
|
||||
|
||||
/**
|
||||
* Shows the toolbox for specified timeout.
|
||||
*
|
||||
* @param {number} _timeout - Timeout for showing the toolbox.
|
||||
* @returns {Function}
|
||||
*/
|
||||
export function showToolbox(_timeout?: number): any {
|
||||
return {};
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows/hides the overflow menu.
|
||||
*
|
||||
* @param {boolean} _visible - True to show it or false to hide it.
|
||||
* @returns {{
|
||||
* type: SET_OVERFLOW_MENU_VISIBLE,
|
||||
* visible: boolean
|
||||
* }}
|
||||
*/
|
||||
export function setOverflowMenuVisible(_visible: boolean): any {
|
||||
return {};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a (redux) action which that a custom button was pressed.
|
||||
*
|
||||
* @param {string} id - The id for the custom button.
|
||||
* @param {string} text - The label for the custom button.
|
||||
* @returns {{
|
||||
* type: CUSTOM_BUTTON_PRESSED,
|
||||
* id: string,
|
||||
* text: string
|
||||
* }}
|
||||
*/
|
||||
export function customButtonPressed(id: string, text: string | undefined) {
|
||||
return {
|
||||
type: CUSTOM_BUTTON_PRESSED,
|
||||
id,
|
||||
text
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user