21316: Merge commit '1416f698b72de4b09350d9c2fb25c1405c3247bc' into 21316-left-panel...
[arvados.git] / services / workbench2 / src / store / dialog / dialog-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { unionize, ofType, UnionOf } from "common/unionize";
6
7 export const dialogActions = unionize({
8     OPEN_DIALOG: ofType<{ id: string, data: any }>(),
9     CLOSE_DIALOG: ofType<{ id: string }>(),
10     CLOSE_ALL_DIALOGS: ofType<{}>()
11 });
12
13 export type DialogAction = UnionOf<typeof dialogActions>;