merge-conflicts
[arvados-workbench2.git] / src / store / context-menu / context-menu-reducer.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 // import actions, { DetailsPanelAction } from "./details-panel-action";
6 // import { Resource, ResourceKind } from "../../models/resource";
7
8 // export interface ContextMenuState {
9 //     position: {
10 //         x: number;
11 //         y: number;
12 //     },
13 //     resource: {
14 //         uuid: string;
15 //         kind: ResourceKind.
16 //     }
17 // }
18
19 // const initialState = {
20 //     item: null,
21 //     isOpened: false
22 // };
23
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 })
30 //     });
31
32 // export default reducer;