UNPKG

@lidofinance/toast

Version:

React component for Lido Finance projects based on React-Toastify (https://github.com/fkhadra/react-toastify). Part of [Lido UI Components](https://github.com/lidofinance/ui/#readme)

16 lines (13 loc) 629 B
import { __assign } from './_virtual/_tslib.js'; import { jsxs, jsx } from 'react/jsx-runtime'; import { toast } from 'react-toastify'; import { ToastPendingStyle, ToastPendingLoaderStyle, ToastPendingTextStyle } from './ToastPendingStyles.js'; import { TOASTS_PENDING_OPTIONS } from './toastsDefaultOptions.js'; function ToastPending(content, options) { return toast(jsxs(ToastPendingStyle, { children: [jsx(ToastPendingLoaderStyle, {}, void 0), jsx(ToastPendingTextStyle, { children: content }, void 0)] }, void 0), __assign(__assign({}, TOASTS_PENDING_OPTIONS), options || {})); } export { ToastPending };