import{A_ as e,E_ as t,Hy as n,Ly as r,O_ as i,Od as a,Zv as o,dg as s,k_ as c,mv as l}from"./index-DDwwBb9e.js";var u=n();function d({title:n=`Failed to load data`,error:d,onRetry:f}){let p=d?.message?.trim()||`The request failed unexpectedly. Please try again or check the server logs.`;return(0,u.jsx)(r,{paddingY:12,children:(0,u.jsx)(c,{children:(0,u.jsxs)(t,{children:[(0,u.jsx)(i,{children:(0,u.jsx)(a,{size:32,color:`var(--chakra-colors-red-500)`})}),(0,u.jsxs)(s,{gap:2,textAlign:`center`,maxWidth:`420px`,children:[(0,u.jsx)(e,{children:n}),(0,u.jsx)(o,{fontSize:`sm`,color:`fg.muted`,children:p}),f&&(0,u.jsx)(l,{size:`sm`,variant:`outline`,colorPalette:`orange`,onClick:f,marginTop:2,children:`Retry`})]})]})})})}export{d as t};
//# sourceMappingURL=GatewayErrorPanel-B3BUPNDe.js.map