import{j as e,b4 as o,cj as s,T as a,al as c}from"./vendor-mui-core-D7t4vMS5.js";import{b4 as i}from"./vendor-ux-Dl3wVbv_.js";function d({title:n="Something went wrong...",desc:t,extraContent:l=null,severity:r="error"}){return e.jsxs(o,{severity:r,variant:"outlined",icon:!1,sx:{justifyContent:"center"},children:[n?e.jsx(s,{children:n}):null,t?e.jsx(a,{variant:"body2",sx:{mb:1},children:t}):null,l??e.jsxs(c,{sx:{display:"flex",gap:1,justifyContent:"center",alignItems:"center"},children:[e.jsx(i,{variant:"outlined",color:r,size:"small",onClick:()=>window.location.replace("/"),children:"Home"}),e.jsx(i,{variant:"contained",color:r,size:"small",onClick:()=>window.location.reload(),children:"Refresh"})]})]})}function m({error:n}){return e.jsx(d,{desc:n.message})}export{m as k};
