text: import { constants, undoConstants } from './constants';
  
  export const setActionsList = function(track_actions_list) {
    return {
      type: constants.SET_ACTIONS_LIST,
      track_actions_list: track_actions_list
    };
  };
  
  export const appendToActionList = function(track_action) {
    return {
      type: constants.APPEND_ACTIONS_LIST,
      track_action: track_action
    };
  };
  
  export const appendToUndoRedoActionList = function(track_action) {
    return {
      type: constants.APPEND_UNDO_REDO_ACTIONS_LIST,
      track_action: track_action
    };
  };
  
  export const setUndoRedoActionList = (undo_redo_actions_list) => {
    return {
      type: constants.SET_UNDO_REDO_ACTIONS_LIST,
      undo_redo_actions_list: undo_redo_actions_list
    };
  }
  
  export const setCurrentActionsList = function(current_actions_list) {
    return {
      type: constants.SET_CURRENT_ACTIONS_LIST,
      current_actions_list: current_actions_list
    };
  };
  
  export const setIsTrackingMoleculesRestoring = function(isTrackingMoleculesRestoring) {
    return {
      type: constants.SET_IS_TRACKING_MOLECULES_RESTORING,
      isTrackingMoleculesRestoring: isTrackingMoleculesRestoring
    };
  };
  
  export const setIsTrackingCompoundsRestoring = function(isTrackingCompoundsRestoring) {
    return {
      type: constants.SET_IS_TRACKING_COMPOUNDS_RESTORING,
      isTrackingCompoundsRestoring: isTrackingCompoundsRestoring
    };
  };
  
  export const setIsUndoRedoAction = function(isUndoRedoAction) {
    return {
      type: constants.SET_IS_UNDO_REDO_ACTION,
      isUndoRedoAction: isUndoRedoAction
    };
  };
  
  export const setIsActionsSending = function(isActionsSending) {
    return {
      type: constants.SET_IS_ACTIONS_SENDING,
      isActionsSending: isActionsSending
    };
  };
  
  export const setIsActionsLoading = function(isActionsLoading) {
    return {
      type: constants.SET_IS_ACTIONS_LOADING,
      isActionsLoading: isActionsLoading
    };
  };
  
  export const setSendActionsList = function(track_actions_list) {
    return {
      type: constants.SET_SEND_ACTIONS_LIST,
      send_actions_list: track_actions_list
    };
  };
  
  export const appendToSendActionList = function(track_action) {
    return {
      type: constants.APPEND_SEND_ACTIONS_LIST,
      track_action: track_action
    };
  };
  
  export const setProjectActionList = function(project_actions_list) {
    return {
      type: constants.SET_PROJECT_ACTIONS_LIST,
      project_actions_list: project_actions_list
    };
  };
  
  export const setSnapshotImageActionList = function(snapshotActionImageList) {
    return {
      type: constants.SET_SNAPSOT_IMAGE_ACTIONS_LIST,
      snapshotActionImageList: snapshotActionImageList
    };
  };
  
  export const setIsActionsSaving = function(isActionSaving) {
    return {
      type: constants.SET_IS_ACTIONS_SAVING,
      isActionSaving: isActionSaving
    };
  };
  
  export const setIsActionsRestoring = function(isActionRestoring, isActionRestored) {
    return {
      type: constants.SET_IS_ACTIONS_RESTORING,
      isActionRestoring: isActionRestoring,
      isActionRestored: isActionRestored
    };
  };
  
  export const setIsActionTracking = function(isActionTracking) {
    return {
      type: constants.SET_IS_ACTION_TRACKING,
      isActionTracking: isActionTracking
    };
  };
  
  export const resetTrackingState = function() {
    return {
      type: constants.RESET_TRACKING_STATE
    };
  };
  
  export const setTrackingImageSource = imageSource => ({
    type: constants.SET_TRACKING_IMAGE_SOURCE,
    payload: imageSource
  });
  
  export const nglTrackingUndo = function() {
    return {
      type: undoConstants.NGL_TRACKING_UNDO
    };
  }
  
  export const nglTrackingRedo = function() {
    return {
      type: undoConstants.NGL_TRACKING_REDO
    };
  }
  
  export const nglClearHistory = function() {
    return {
      type: undoConstants.NGL_CLEAR_HISTORY
    }
  }