import * as React from "react" ; import { Intent , Toast } from "@blueprintjs/core" ; import { IconNames } from "@blueprintjs/icons" ; import { ExampleCard } from "./ExampleCard" ; export class ToastExample extends React . PureComponent { private onDismiss = ( ) => { return ; } ; public render ( ) { return ( < div className = "example-row" > < ExampleCard label = "Toast" > { Object . values ( Intent ) . map ( intent => ( < Toast key = { `${ intent }-toast` } intent = { intent as Intent } message = "This is a toast message" icon = { IconNames . INFO_SIGN } timeout = { 0 } action = { { text : "Undo" } } onDismiss = { this . onDismiss } / > ) ) } < /ExampleCard> < /div>); } }