您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.native.js 481B

123456789101112131415161718192021
  1. // @flow
  2. import { toState } from '../base/redux';
  3. export * from './functions.any';
  4. /**
  5. *
  6. * Returns true if polls feature is disabled.
  7. *
  8. * @param {(Function|Object)} stateful - The (whole) redux state, or redux's
  9. * {@code getState} function to be used to retrieve the state
  10. * features/base/config.
  11. * @returns {boolean}.
  12. */
  13. export function getDisablePolls(stateful: Object) {
  14. const state = toState(stateful['features/base/config']);
  15. return state.disablePolls;
  16. }