import{i,j as e,s as l}from"./main-DdRJODKl.js";import{S as c}from"./StatusPill-CgsGb59l.js";import"./index-DFdv9T8E.js";function f({systemStatus:t,onShutdown:s,shutdownState:r="idle"}){const n=i(),o=()=>{if(l(!n),typeof window<"u"){const a=new URL(window.location.href);a.searchParams.delete("safe"),window.location.href=a.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("button",{type:"button",onClick:s,disabled:r==="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:r==="pending"?"Arrêt...":"Logout"}),e.jsxs("button",{type:"button",onClick:o,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: ",n?"ON":"OFF"]}),e.jsx(c,{label:t,status:t==="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{f as Header};
