-
Notifications
You must be signed in to change notification settings - Fork 2
/
FrameworkState.ts
29 lines (26 loc) · 1.09 KB
/
FrameworkState.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module State
*/
import type { ConfigurableUiState } from "../configurableui/state";
import { ConfigurableUiReducer } from "../configurableui/state";
import { combineReducers } from "./redux-ts";
import type { SessionState } from "./SessionState";
import { SessionStateReducer } from "./SessionState";
/** Interface combining all the Framework state interfaces.
* @public
*/
export interface FrameworkState {
configurableUiState: ConfigurableUiState;
sessionState: SessionState;
}
/** Framework reducer that combines the [[ConfigurableUiReducer]] and [[SessionStateReducer]].
* @public
*/
export const FrameworkReducer = combineReducers({
configurableUiState: ConfigurableUiReducer,
sessionState: SessionStateReducer,
});