UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

33 lines (28 loc) 711 B
import Info from "../Icon/Icons/components/Info"; import Check from "../Icon/Icons/components/Check"; import Alert from "../Icon/Icons/components/Alert"; import Warning from "../Icon/Icons/components/Warning"; export enum ToastType { NORMAL = "normal", POSITIVE = "positive", NEGATIVE = "negative", WARNING = "warning", DARK = "dark" } export enum ToastActionType { LINK = "link", BUTTON = "button" } export const defaultIconMap = { [ToastType.NORMAL]: Info, [ToastType.POSITIVE]: Check, [ToastType.NEGATIVE]: Alert, [ToastType.WARNING]: Warning, [ToastType.DARK]: Info }; export type ToastAction = { type: ToastActionType; content?: string; text?: string; href?: string; };