mirror of https://github.com/jitsi/jitsi-meet
parent
d7d9bc4eeb
commit
045a2d6aca
@ -0,0 +1,17 @@ |
||||
// @flow
|
||||
|
||||
import { toState } from '../base/redux'; |
||||
|
||||
/** |
||||
* Returns true if the toolbox is visible. |
||||
* |
||||
* @param {Object | Function} stateful - A function or object that can be |
||||
* resolved to Redux state by the function {@code toState}. |
||||
* @returns {boolean} |
||||
*/ |
||||
export function isToolboxVisible(stateful: Object | Function) { |
||||
const { alwaysVisible, enabled, visible } |
||||
= toState(stateful)['features/toolbox']; |
||||
|
||||
return enabled && (alwaysVisible || visible); |
||||
} |
@ -0,0 +1,3 @@ |
||||
// @flow
|
||||
|
||||
export * from './functions.any'; |
Loading…
Reference in new issue