import { getConf } from './configuration.js';

// import base reducers
import configurator from './Reducers/Configurator/Reducer';
import configurationMode from './Reducers/ConfigurationMode/Reducer';
import designArea from './Reducers/DesignArea/Reducer';
import designView from './Reducers/DesignView/Reducer';
import ui from './Reducers/UI/Reducer';
import fonts from './Reducers/Fonts/Reducer';
import imageGallery from './Reducers/ImageGallery/Reducer';
import confirm from './Reducers/Confirm/Reducer';

const combinedReducers = {
    configurator,
    configurationMode,
    designArea,
    designView,
    ui,
    fonts,
    imageGallery,
    confirm,
};

const customReducers = getConf('reducers', {});

export default { ...combinedReducers, ...customReducers };
