'use strict';

var chunkPOB3QXRX_cjs = require('./chunk-POB3QXRX.cjs');
var chunk4SZXQT5I_cjs = require('./chunk-4SZXQT5I.cjs');
var icons = require('@onbeam/icons');
var sonner = require('sonner');
var jsxRuntime = require('react/jsx-runtime');

var s=(o,{icon:t,description:e,duration:c}={})=>sonner.toast.custom(m=>jsxRuntime.jsx(chunkPOB3QXRX_cjs.a,{icon:t,title:o,description:e,onClose:()=>sonner.toast.dismiss(m)}),{duration:c}),g=(o,t)=>s(o,{...t,icon:jsxRuntime.jsx(icons.SuccessIcon,{})}),p=(o,t)=>s(o,{...t,icon:jsxRuntime.jsx(icons.ErrorIcon,{})}),l=(o,t)=>s(o,{...t,icon:jsxRuntime.jsx(chunk4SZXQT5I_cjs.a,{variant:"spinner",style:{width:"1.5rem",height:"1.5rem"}})}),f=o=>sonner.toast.dismiss(o),E={message:s,success:g,error:p,loading:l,dismiss:f};

exports.a = E;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-INW2DNQ2.cjs.map