28 lines
409 B
JavaScript
Raw Normal View History

export const TOAST_SHOW = 'TOAST_SHOW'
export const TOAST_DISMISS = 'TOAST_DISMISS'
export const TOAST_CLEAR = 'TOAST_CLEAR'
2020-11-15 12:48:32 -06:00
/**
*
*/
export const dismissToast = (toastKey) => ({
2020-11-15 12:48:32 -06:00
type: TOAST_DISMISS,
toastKey,
2020-11-15 12:48:32 -06:00
})
2020-11-15 12:48:32 -06:00
/**
*
*/
export const clearToast = () => ({
type: TOAST_CLEAR,
})
2020-11-15 12:48:32 -06:00
/**
*
*/
export const showToast = (toastType, toastData) => ({
2020-11-15 12:48:32 -06:00
type: TOAST_SHOW,
toastType,
toastData,
2020-11-15 12:48:32 -06:00
})