"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react/jsx-runtime"),r=require("react"),o=require("./Toaster.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=u(e),a=Symbol.for("devcenterToasts");exports.DEVCENTER_TOASTS_SYMBOL=a,exports.ToastContainer=function(){var e=r.useState(null),u=s.default(e,2),n=u[0],i=u[1],l=function(){return i(null)},c=function(e,t){return i({message:e,autoHideDuration:t})},f=c;return r.useEffect((function(){window[a]={createToast:c,removeToast:l,showToast:f}}),[]),n?t.jsx(o.Toaster,{message:n.message,autoHideDuration:n.autoHideDuration,onDismiss:l}):null};
//# sourceMappingURL=ToastContainer.js.map
