1import{u as c,x as o,r as a,j as e,y as l,O as d,s as u}from"./index-Be-Y2S-r.js";import{i as x,B as m}from"./button-B9JoGnvg.js";function g(){const t=c(),s=o(),[i,r]=a.useState("checking");a.useEffect(()=>{(async()=>await x()?r("ok"):t({to:"/login",replace:!0}))()},[t]);async function n(){await s.cancelQueries(),s.clear(),await u.auth.signOut(),t({to:"/login",replace:!0})}return i==="checking"?e.jsx("div",{className:"container-editorial py-24 text-sm text-muted-foreground",children:"Verifica accessoâ¦"}):e.jsxs("div",{className:"container-editorial py-12",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-border pb-6",children:[e.jsxs("div",{children:[e.jsx("span",{className:"eyebrow",children:"Identity Style"}),e.jsx("h1",{className:"mt-2 font-serif text-3xl md:text-4xl",children:"Redazione"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(l,{to:"/admin",className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground hover:text-foreground",children:"Articoli"}),e.jsx(m,{variant:"outline",size:"sm",onClick:n,children:"Esci"})]})]}),e.jsx(d,{})]})}export{g as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.