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