1 import { IActionHandler } from '../../../../framework/src/flux/action';
3 import { SetPanelAction } from '../actions/panelActions';
4 import { PanelId } from '../models/panelId';
6 export const currentOpenPanelHandler: IActionHandler<PanelId> = (state = null, action) => {
7 if (action instanceof SetPanelAction) {
8 state = action.panelId;