UNPKG

@boomerang-io/carbon-addons-boomerang-react

Version:
29 lines (26 loc) 886 B
import React from 'react'; import { ToastNotification as ToastNotification$1 } from '@carbon/react'; import { prefix } from '../../internal/settings.js'; /* IBM Confidential 694970X, 69497O0 © Copyright IBM Corp. 2022, 2024 */ // eslint-disable no-unused-vars ToastNotification.defaultProps = { kind: "info", title: "", subtitle: "", caption: undefined, role: "alert", notificationType: "toast", iconDescription: "closes notification", onCloseButtonClick: () => { }, hideCloseButton: true, timeout: 1000000, }; function ToastNotification({ iconDescription, closeToast, toastProps, notificationType, ...rest }) { return (React.createElement("div", { className: `${prefix}--bmrg-toast-notification-container` }, React.createElement(ToastNotification$1, { ...rest }))); } export { ToastNotification as default };