import{e as n,u as d,c as o,a as c,j as e}from"./index-D4ZMoJFe.js";import{R as i}from"./refresh-ccw-DqBcVzHT.js";/**
 * @license lucide-react v0.469.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l=n("ServerCrash",[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]]);function h(){const r=d(),s=o(),{activeModule:t}=c();return e.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:e.jsxs("div",{className:"max-w-xl rounded-[32px] border border-border bg-surface px-8 py-10 text-center shadow-panel",children:[e.jsx("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-3xl bg-danger/10 text-danger",children:e.jsx(l,{size:28})}),e.jsx("div",{className:`mx-auto mt-5 inline-flex rounded-full border px-3 py-1 text-xs font-semibold ${t==="MGX"?"border-gold/30 bg-gold/10 text-gold":"border-accent/30 bg-accent/10 text-accent"}`,children:t||"SCF"}),e.jsx("h1",{className:"mt-4 text-3xl font-semibold text-text",children:"Erreur serveur"}),e.jsx("p",{className:"mt-3 text-sm leading-7 text-textMuted",children:"Le serveur a renvoyé une erreur. Réessayez la dernière action ou revenez au tableau de bord."}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[e.jsxs("button",{type:"button",className:"btn-primary inline-flex items-center gap-2",onClick:()=>window.location.reload(),children:[e.jsx(i,{size:16}),"Réessayer"]}),e.jsx("button",{type:"button",className:"btn-secondary",onClick:()=>{var a;return r(((a=s.state)==null?void 0:a.from)||(t==="MGX"?"/mgx/dashboard":"/dashboard"))},children:"Retour"})]})]})})}export{h as default};
