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

functions.js 391B

123456789101112131415
  1. /* @flow */
  2. /**
  3. * Retreives the current profile settings from redux store. The profile
  4. * is persisted to localStorage so it's a good candidate to store settings
  5. * in it.
  6. *
  7. * @param {Object} state - The Redux state.
  8. * @returns {Object}
  9. */
  10. export function getProfile(state: Object) {
  11. const profileStateSlice = state['features/base/profile'];
  12. return profileStateSlice || {};
  13. }