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