import{i as c,j as e,s as l}from"./main-p4UBsOSf.js";import{S as d}from"./StatusPill-BDkFIujB.js";import"./index-DRkHHVpg.js";function u({systemStatus:r,onShutdown:n,shutdownState:t="idle",downloadUrl:s}){const a=c(),i=()=>{if(l(!a),typeof window<"u"){const o=new URL(window.location.href);o.searchParams.delete("safe"),window.location.href=o.toString()}};return e.jsxs("header",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.4em] text-neon-cyan/70",children:"VA-Pipeline"}),e.jsx("h1",{className:"font-display text-2xl text-white",children:"OB OHR // Command Nexus"})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[s&&e.jsx("a",{href:s,className:"rounded-full border border-neon-cyan/40 px-4 py-2 text-xs uppercase tracking-[0.3em] text-neon-cyan hover:bg-neon-cyan/10",children:"Télécharger UI"}),n&&e.jsx("button",{type:"button",onClick:n,disabled:t==="pending",className:"rounded-full border border-rose-400/60 px-4 py-2 text-xs uppercase tracking-[0.3em] text-rose-200 hover:bg-rose-500/10 disabled:cursor-not-allowed disabled:opacity-60",title:"Arrêter Obohr OS",children:t==="pending"?"Arrêt...":"Logout"}),e.jsxs("button",{type:"button",onClick:i,className:"rounded-full border border-neon-cyan/40 px-4 py-2 text-xs uppercase tracking-[0.3em] text-neon-cyan hover:bg-neon-cyan/10",title:"Toggle Safe UI mode (disables heavy 3D effects)",children:["Safe UI: ",a?"ON":"OFF"]}),e.jsx(d,{label:r,status:r==="ok"?"active":"offline"}),e.jsx("div",{className:"rounded-full border border-neon-cyan/40 px-4 py-2 text-xs uppercase tracking-[0.3em] text-neon-cyan",children:"Secure Link"})]})]})}export{u as Header};
