"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserInterfaceReducer = exports.UserInterfaceSetHideAdaptableUI = exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI = void 0;
/**
 * @ReduxAction Sets whether all AdapTable UI elements are hidden
 */
exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI = 'USER_INTERFACE_SET_HIDE_ADAPTABLE_UI';
const UserInterfaceSetHideAdaptableUI = (hideAdaptableUI) => ({
    type: exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI,
    hideAdaptableUI,
});
exports.UserInterfaceSetHideAdaptableUI = UserInterfaceSetHideAdaptableUI;
const initialState = {
    HideAdaptableUI: false,
};
const UserInterfaceReducer = (state = initialState, action) => {
    switch (action.type) {
        case exports.USER_INTERFACE_SET_HIDE_ADAPTABLE_UI:
            return Object.assign({}, state, {
                HideAdaptableUI: action.hideAdaptableUI,
            });
        default:
            return state;
    }
};
exports.UserInterfaceReducer = UserInterfaceReducer;
