import{z as r,j as e,aY as a,u,r as g,t}from"./vendor-laZsiqLO.js";const c=({...s})=>{const{theme:o="system"}=r();return e.jsx(a,{theme:o,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...s})};function n(){const{flash:s}=u().props;g.useEffect(()=>{s?.success&&t.success(s.success),s?.error&&t.error(s.error),s?.message&&t.message(s.message)},[s])}export{c as T,n as u};
