jiti-meet/react/features/base/sounds/functions.any.ts

12 lines
339 B
TypeScript

import { IReduxState } from '../../app/types';
/**
* Selector for retrieving the disabled sounds array.
*
* @param {Object} state - The Redux state.
* @returns {Array<string>} - The disabled sound id's array.
*/
export function getDisabledSounds(state: IReduxState) {
return state['features/base/config'].disabledSounds || [];
}