import{j as e,n as a}from"./index-D4ZMoJFe.js";import{R as d}from"./refresh-ccw-DqBcVzHT.js";function x({title:t="Erreur de chargement",message:s,onRetry:r,compact:n=!1}){return e.jsx("div",{className:`rounded-2xl border border-danger/20 bg-danger/5 px-6 py-6 ${n?"":"min-h-[220px]"}`,children:e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-2xl bg-danger/10 text-danger",children:e.jsx(a,{size:24})}),e.jsx("h3",{className:"mt-4 text-lg font-semibold text-danger",children:t}),e.jsx("p",{className:"mt-2 text-sm leading-6 text-danger/80",children:s}),r?e.jsxs("button",{type:"button",className:"btn-secondary mt-5 inline-flex items-center gap-2 border-danger/20 text-danger hover:bg-danger/10",onClick:r,children:[e.jsx(d,{size:16}),"Réessayer"]}):null]})})})}export{x as E};
