import r from"@babel/runtime/helpers/slicedToArray";import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as t}from"react";import{Toaster as n}from"./Toaster.js";var a=Symbol.for("devcenterToasts"),i=function(){var i=e(null),s=r(i,2),u=s[0],m=s[1],l=function(){return m(null)},c=function(r,o){return m({message:r,autoHideDuration:o})},f=c;return t((function(){window[a]={createToast:c,removeToast:l,showToast:f}}),[]),u?o(n,{message:u.message,autoHideDuration:u.autoHideDuration,onDismiss:l}):null};export{a as DEVCENTER_TOASTS_SYMBOL,i as ToastContainer};
//# sourceMappingURL=ToastContainer.js.map
