1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { sidePanelActions } from "./side-panel-action"
7 interface SidePanelState {
8 collapsedState: boolean
11 const sidePanelInitialState = {
15 export const sidePanelReducer = (state: SidePanelState = sidePanelInitialState, action)=>{
16 if(action.type === sidePanelActions.TOGGLE_COLLAPSE) return {...state, collapsedState: action.payload}