import types from '../../types' const samplernnInitialState = { loading: false, error: null, folders: [], datasets: [], results: [], input: { folder: {}, files: [], }, output: { folder: {}, files: [], }, } const samplernnReducer = (state = samplernnInitialState, action) => { console.log(action) switch(action.type) { case types.task.task_begin: return { ...state, } case types.task.task_finish: return { ...state, } case types.socket.status: return samplernnSocket(state, action.data) default: return state } } const samplernnSocket = (state, action) => { console.log(action) switch (action.key) { default: return state } } export default samplernnReducer