• Show a toast message with undo styling

    Parameters

    • text: string

      Message to be shown in the toast, any HTML is removed by default

    • onUndo: ((e: MouseEvent) => void)

      Function that is called when the undo button is clicked

        • (e): void
        • Parameters

          • e: MouseEvent

          Returns void

    • Optionaloptions: ToastOptions

    Returns Toast