import {
    SET_PACKAGE_FROM_URL
} from '../../constants/coMarketConstants';

const moduleReducers = {};

moduleReducers[SET_PACKAGE_FROM_URL] = (state, action) => {
    return Object.assign({}, state, {
        idPackage: action.idPackage
    });
};

const coMarketReducer = (state = {}, action) => {

    return moduleReducers[action.type] ? moduleReducers[action.type](state, action) : state;
};

export default coMarketReducer;
