1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 // import actions, { DetailsPanelAction } from "./details-panel-action";
6 // import { Resource, ResourceKind } from "../../models/resource";
8 // export interface ContextMenuState {
15 // kind: ResourceKind.
19 // const initialState = {
24 // const reducer = (state: DetailsPanelState = initialState, action: DetailsPanelAction) =>
25 // actions.match(action, {
26 // default: () => state,
27 // LOAD_DETAILS: () => state,
28 // LOAD_DETAILS_SUCCESS: ({ item }) => ({ ...state, item }),
29 // TOGGLE_DETAILS_PANEL: () => ({ ...state, isOpened: !state.isOpened })
32 // export default reducer;