jiti-meet/react/features/conference/functions.native.ts

22 lines
532 B
TypeScript
Raw Normal View History

import { IStateful } from '../base/app/types';
import { toState } from '../base/redux/functions';
2020-10-08 09:41:00 +00:00
export * from './functions.any';
/**
*
* Returns true if polls feature is disabled.
*
* @param {(Function|Object)} stateful - The (whole) redux state, or redux's
* {@code getState} function to be used to retrieve the state
* features/base/config.
* @returns {boolean}.
*/
export function getDisablePolls(stateful: IStateful) {
const state = toState(stateful)['features/base/config'];
return state.disablePolls;
}