32fa653bfe0427638fa03ac63ddb46a68c77b54d
[arvados-workbench2.git] / src / store / side-panel / side-panel-action.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { default as unionize, ofType, UnionOf } from "unionize";
6
7 const actions = unionize({
8     TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType<string>(),
9     TOGGLE_SIDE_PANEL_ITEM_ACTIVE: ofType<string>(),
10     RESET_SIDE_PANEL_ACTIVITY: ofType<string>(),
11 }, {
12     tag: 'type',
13     value: 'payload'
14 });
15
16 export type SidePanelAction = UnionOf<typeof actions>;
17 export default actions;