@boomerang-io/carbon-addons-boomerang-react
Version:
Carbon Addons for Boomerang apps
29 lines (26 loc) • 886 B
JavaScript
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 };