snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
27
react/features/reactions/functions.web.ts
Normal file
27
react/features/reactions/functions.web.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { IReduxState } from '../app/types';
|
||||
|
||||
import { isReactionsEnabled } from './functions.any';
|
||||
|
||||
export * from './functions.any';
|
||||
|
||||
/**
|
||||
* Returns the visibility state of the reactions menu.
|
||||
*
|
||||
* @param {Object} state - The state of the application.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function getReactionsMenuVisibility(state: IReduxState): boolean {
|
||||
return state['features/reactions'].visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the reactions button is enabled.
|
||||
*
|
||||
* @param {Object} state - The Redux state object.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function isReactionsButtonEnabled(state: IReduxState) {
|
||||
const { toolbarButtons } = state['features/toolbox'];
|
||||
|
||||
return Boolean(toolbarButtons?.includes('reactions')) && isReactionsEnabled(state);
|
||||
}
|
||||
Reference in New Issue
Block a user