/*
 *
 * ModelManageAddForm actions
 *
 */

import {
  INITADDFORM_ACTION, SUBMITADDFORM_ACTION, SETSUBMIT_ACTION, FETCHPROCESSTYPE_ACTION, INITINPUT_ACTION,
} from './constants';

export function initAddFormAction() {
  return {
    type: INITADDFORM_ACTION,
  };
}

export function initInputAction() {
  return {
    type: INITINPUT_ACTION,
  };
}

export function setSubmitAction(submit) {
  return {
    type: SETSUBMIT_ACTION,
    submit,
  };
}

export function submitAddFormAction(form) {
  return {
    type: SUBMITADDFORM_ACTION,
    form,
  };
}

export function fetchProcessTypeAction(tenantId) {
  return {
    type: FETCHPROCESSTYPE_ACTION,
    tenantId,
  };
}
