import AppActionTypes from "./app.types";

export const setCameraJobId = (jobId) => ({
  type: AppActionTypes.SET_CAMERA_JOB_ID,
  payload: jobId,
});

export const setCameraJob = (job) => ({
  type: AppActionTypes.SET_CAMERA_JOB,
  payload: job,
});

export const documentUploadStart = (jobId) => ({
  type: AppActionTypes.DOCUMENT_UPLOAD_START,
  payload: jobId,
});

export const documentUploadSuccess = (jobId) => ({
  type: AppActionTypes.DOCUMENT_UPLOAD_SUCCESS,
  payload: jobId,
});

export const documentUploadFailure = (error) => ({
  type: AppActionTypes.DOCUMENT_UPLOAD_FAILURE,
  payload: error,
});
export const toggleDeleteAfterUpload = () => ({
  type: AppActionTypes.TOGGLE_DLETE_AFTER_UPLOAD,
});

export const setTheme = (theme) => ({
  type: AppActionTypes.SET_THEME,
  payload: theme,
});
