Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

functions.native.js 474B

1234567891011121314151617
  1. // @flow
  2. import { toState } from '../base/redux';
  3. /**
  4. * Returns true if the toolbox is visible.
  5. *
  6. * @param {Object | Function} stateful - A function or object that can be
  7. * resolved to Redux state by the function {@code toState}.
  8. * @returns {boolean}
  9. */
  10. export function isToolboxVisible(stateful: Object | Function) {
  11. const { alwaysVisible, enabled, visible }
  12. = toState(stateful)['features/toolbox'];
  13. return enabled && (alwaysVisible || visible);
  14. }