text: import axios from "axios";
  import { notification } from "antd";
  import { showLoading, hideLoading } from "react-redux-loading-bar";
  import { request, success, error } from "@/actions/genericActions";
  import * as reducerTypes from "@/constants/reducerTypes";
  import * as staticContentActions from "@/actions/staticContentActions";
  import * as String from "@/constants/strings";
  import * as API from "@/constants/API";
  import { ENVIRONMENT } from "@/constants/environment";
  import { createRequestHeader } from "@/utils/RequestHeaders";
  
  // This file is anticipated to have multiple exports
  // eslint-disable-next-line import/prefer-default-export
  export const fetchExpectedDocumentStatusOptions = () => (dispatch) => {
    dispatch(request(reducerTypes.GET_EXPECTED_DOCUMENT_STATUS));
    dispatch(showLoading("modal"));
    return axios
      .get(`${ENVIRONMENT.apiUrl + API.DOCUMENT_STATUS}`, createRequestHeader())
      .then((response) => {
        dispatch(success(reducerTypes.GET_EXPECTED_DOCUMENT_STATUS));
        dispatch(staticContentActions.storeDocumentStatusOptions(response.data));
        dispatch(hideLoading("modal"));
      })
      .catch((err) => {
        notification.error({
          message: err.response ? err.response.data.error.message : String.ERROR,
          duration: 10,
        });
        dispatch(error(reducerTypes.GET_EXPECTED_DOCUMENT_STATUS));
        dispatch(hideLoading("modal"));
      });
  };
  