import types from '../../types' const pix2pixInitialState = { loading: true, error: null, folders: [], folder_id: 0, data: null, lossReport: null, } const pix2pixReducer = (state = pix2pixInitialState, action) => { // console.log(action.type) switch(action.type) { case types.pix2pix.init: return { ...state, loading: false, data: action.data, } case types.socket.connect: return { ...state, } case types.task.task_begin: return { ...state, } case types.task.task_finish: return { ...state, } default: return state } } export default pix2pixReducer