refs #master Merge branch 'origin/master' into 13828-trash-view
[arvados.git] / src / views-components / context-menu / context-menu-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from "redux";
6 import { ContextMenuItem } from "~/components/context-menu/context-menu";
7 import { ContextMenuResource } from "~/store/context-menu/context-menu-reducer";
8
9 export interface ContextMenuAction extends ContextMenuItem {
10     execute(dispatch: Dispatch, resource: ContextMenuResource): void;
11 }
12
13 export type ContextMenuActionSet = Array<Array<ContextMenuAction>>;