export const currentViewActionTypes = { GETCURRENTVIEW: "GETCURRENTVIEW", SETCURRENTVIEW: "SETCURRENTVIEW", SETCURRENTREFERENCE: "SETCURRENTREFERENCE", }; export const getCurrentViewObj = () => (dispatch) => { return dispatch({ type: currentViewActionTypes.GETCURRENTVIEW, }); }; export const setCurrentView = (currentView) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETCURRENTVIEW, currentView: currentView, }); }; export const setCurrentReference = (caseReference) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETCURRENTREFERENCE, caseReference: caseReference, }); };