mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-15 00:17:48 +00:00
16 lines
500 B
TypeScript
16 lines
500 B
TypeScript
import { IStateful } from '../base/app/types';
|
|
import { toState } from '../base/redux/functions';
|
|
|
|
/**
|
|
* Returns true if follow me is active and false otherwise.
|
|
*
|
|
* @param {Object|Function} stateful - Object or function that can be resolved
|
|
* to the Redux state.
|
|
* @returns {boolean} - True if follow me is active and false otherwise.
|
|
*/
|
|
export function isFollowMeActive(stateful: IStateful) {
|
|
const state = toState(stateful);
|
|
|
|
return Boolean(state['features/follow-me'].moderator);
|
|
}
|