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.

functions.js 424B

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 ? profileStateSlice.profile || {} : {};
  13. }