"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _types = require("../actions/types");

const intialState = {
  uploadImageDatasource: [{
    imagePath: "",
    stepTitle: "",
    imageSize: "",
    upLoadStatus: "0",
    filename: "",
    type: ""
  }]
};

var _default = (state = intialState, action) => {
  switch (action.type) {
    case _types.UPLOAD_IMAGE_DATA:
      return { ...state,
        uploadImageDatasource: [...state.uploadImageDatasource, action.payload]
      };

    default:
      return state;
  }
};

exports.default = _default;
//# sourceMappingURL=uploadImageDatasourceReducer.js.map