import { a } from './chunk-HQAXEVP5.js';
import { SuccessIcon, ErrorIcon } from '@onbeam/icons';
import { toast } from 'sonner';
import { jsx } from 'react/jsx-runtime';

var i=(s,{icon:o,description:c,duration:e}={})=>toast.custom(r=>jsx(a,{icon:o,title:s,description:c,onClose:()=>toast.dismiss(r)}),{duration:e}),T=(s,o)=>i(s,{...o,icon:jsx(SuccessIcon,{})}),p=(s,o)=>i(s,{...o,icon:jsx(ErrorIcon,{})}),g=s=>toast.dismiss(s),D={message:i,success:T,error:p,dismiss:g};

export { D as a };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-NCBUBXNU.js.map