import{j as e,b4 as o,cg as s,T as a,al as c}from"./vendor-mui-core-CDEc-eG6.js";import{bk as i}from"./vendor-ux-PO0jFgJf.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 u({error:n}){return e.jsx(d,{desc:n.message})}export{u as k};
