const initial_state = {
  id: "",
  first_name: "",
  last_name: "",
  agency: {},
  email: "",
  auth_token: "",
  no_emails: false,
  logout_link: "",
  edit_password_link: "",
}

export function profile(state = initial_state, action) {
  switch (action.type) {
    case 'update_profile':
      return Object.assign({}, state, action.profile)
    default:
      return state
  }
}
