1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { default as unionize, ofType, UnionOf } from "unionize";
6 import { ContextMenuPosition, ContextMenuResource } from "./context-menu-reducer";
8 export const contextMenuActions = unionize({
9 OPEN_CONTEXT_MENU: ofType<{ position: ContextMenuPosition, resource: ContextMenuResource }>(),
10 CLOSE_CONTEXT_MENU: ofType<{}>()
16 export type ContextMenuAction = UnionOf<typeof contextMenuActions>;