1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { unionize, ofType, UnionOf } from "~/common/unionize";
7 export interface SnackbarMessage {
14 export enum SnackbarKind {
21 export const snackbarActions = unionize({
22 OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind, link?: string}>(),
23 CLOSE_SNACKBAR: ofType<{}>(),
24 SHIFT_MESSAGES: ofType<{}>()
27 export type SnackbarAction = UnionOf<typeof snackbarActions>;