You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213141516 |
- // @flow
-
- import { toState } from '../base/redux';
-
- /**
- * 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: Object | Function) {
- const state = toState(stateful);
-
- return Boolean(state['features/follow-me'].moderator);
- }
|