1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Dispatch } from "redux";
6 import { IconType } from "components/icon/icon";
7 import { ResourcesState } from "store/resources/resources";
8 import { FavoritesState } from "store/favorites/favorites-reducer";
9 import { ContextMenuResource } from "store/context-menu/context-menu-actions";
11 export const MultiSelectMenuActionNames = {
12 MAKE_A_COPY: "Make a copy",
14 ADD_TO_TRASH: "Add to Trash",
15 ADD_TO_FAVORITES: "Add to Favorites",
16 COPY_TO_CLIPBOARD: "Copy to clipboard",
17 COPY_AND_RERUN_PROCESS: "Copy and re-run process",
21 export type MultiSelectMenuAction = {
27 isDefault?: (uuid: string | null, resources: ResourcesState, favorites: FavoritesState) => boolean;
28 execute(dispatch: Dispatch, resources: ContextMenuResource[], state?: any): void;
32 export type MultiSelectMenuActionSet = MultiSelectMenuAction[][];