mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
23 lines (22 loc) • 695 B
JavaScript
;
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
Object.defineProperty(exports, "__esModule", { value: true });
const redux_1 = require("redux");
const action_types_1 = require("mattermost-redux/action_types");
function serverLimits(state = {}, action) {
switch (action.type) {
case action_types_1.LimitsTypes.RECEIVED_APP_LIMITS: {
const serverLimits = action.data;
return {
...state,
...serverLimits,
};
}
default:
return state;
}
}
exports.default = (0, redux_1.combineReducers)({
serverLimits,
});