/*
 * Copyright 2017-2022 VMware, Inc. All rights reserved. VMware Confidential
 */

import { ActionReducerMap, StoreModule } from "@ngrx/store";
import { appExtensionsReducer, AppExtensionState } from "./extensions/extensions.state";

export interface AppState {
    appExtensions: AppExtensionState;
}
export const appStateReducers: ActionReducerMap<any> = {
    appExtensions: appExtensionsReducer,
};

export const initialAppState: { [key: string]: any } = new Object();

export const appStateImports = StoreModule.forRoot(appStateReducers, {
    initialState: initialAppState,
    runtimeChecks: {
        strictActionImmutability: false,
        strictStateImmutability: false,
    },
});
