import types from '../../types' import datasetReducer from '../../dataset/dataset.reducer' const pix2wavInitialState = { loading: true, progress: { i: 0, n: 0 }, error: null, folder_id: 0, data: null, } const pix2wavReducer = (state = pix2wavInitialState, action) => { if (action.data && action.data.module === 'pix2wav') { state = datasetReducer(state, action) } switch (action.type) { default: return state } } export default pix2wavReducer