import { shareActionTypes } from '../action-types/share.actions.types';

const initialState = {
  activeAgentList: {},
};

export default (state = initialState, action) => {
  switch (action.type) {
    case shareActionTypes.GET_ACTIVE_AGENT_LIST:
      return {
        ...state,
        activeAgentList: action.payload,
      };

    case shareActionTypes.INVITE_AGENT_VIA_FORM_SHARE:
      return {
        ...state,
        invitedAgents: action.payload,
      };
    default:
      return state;
  }
};
