import{a4 as c}from"./BKiFavna.js";const f=()=>{const o=c("toasts",()=>[]);let a=0;const t=(s,e="info",u=4e3)=>{const r=++a;return o.value.push({id:r,message:s,type:e}),u>0&&setTimeout(()=>n(r),u),r},n=s=>{o.value=o.value.filter(e=>e.id!==s)};return{toasts:o,show:t,remove:n,success:(s,e)=>t(s,"success",e),error:(s,e)=>t(s,"error",e),warn:(s,e)=>t(s,"warn",e),info:(s,e)=>t(s,"info",e)}};export{f as u};
