import { a } from './chunk-T6WQZS4M.js';
import { a as a$1 } from './chunk-YT7VOOFF.js';
import { SuccessIcon, ErrorIcon } from '@onbeam/icons';
import { toast } from 'sonner';
import { jsx } from 'react/jsx-runtime';

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

export { E as a };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-434VN2YS.js.map