選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

functions.js 461B

12345678910111213141516
  1. // @flow
  2. import { toState } from '../base/redux';
  3. /**
  4. * Returns true if follow me is active and false otherwise.
  5. *
  6. * @param {Object|Function} stateful - Object or function that can be resolved
  7. * to the Redux state.
  8. * @returns {boolean} - True if follow me is active and false otherwise.
  9. */
  10. export function isFollowMeActive(stateful: Object | Function) {
  11. const state = toState(stateful);
  12. return Boolean(state['features/follow-me'].moderator);
  13. }