Merge branch '13886-integrate-favorites-with-snackbar-notifications'
[arvados-workbench2.git] / src / store / snackbar / snackbar-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 "unionize";
6
7 export const snackbarActions = unionize({
8     OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number}>(),
9     CLOSE_SNACKBAR: ofType<{}>()
10 }, { tag: 'type', value: 'payload' });
11
12 export type SnackbarAction = UnionOf<typeof snackbarActions>;