import { createSlice } from '@reduxjs/toolkit';
import { getDefaultConfig } from 'src/lib/common/helpers';
import { mergeDeep } from 'src/lib/utils';
var initialState = getDefaultConfig();
export var configSlice = createSlice({
    name: 'config',
    initialState: initialState,
    reducers: {
        setConfig: function (state, action) {
            state.config = mergeDeep(state.config, action.payload);
        },
    },
});
export var setConfig = configSlice.actions.setConfig;
export default configSlice.reducer;
