1import{j as e}from"./react-RN8z7mqm.js";import{g as m,L as a,i as l}from"./index-BwX0UczS.js";import{u as c}from"./useLocation-Be-Rmr2E.js";import{i as d,c as x}from"./growth-owner-DG-lXOcc.js";import"./supabase-D7bm-uKx.js";import"./sonner-CSA395gJ.js";function h(){return e.jsx("div",{className:"flex min-h-[70vh] items-center justify-center bg-background px-4",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx("p",{className:"text-xs font-medium uppercase tracking-[0.25em] text-primary",children:"Off the page"}),e.jsx("h1",{className:"font-display mt-4 text-[7rem] leading-none text-foreground",children:"404"}),e.jsx("h2",{className:"mt-2 text-xl font-semibold",children:"This page left no testimonial."}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The link you followed doesn't exist â but the Testivo Wall still does."}),e.jsx("div",{className:"mt-7",children:e.jsx(a,{to:"/",className:"inline-flex items-center rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90",children:"Back to Testivo â"})})]})})}function v(){const{user:o,loading:r}=m(),s=c();if(r)return e.jsx("div",{className:"grid min-h-[50vh] place-items-center text-sm text-muted-foreground",children:"Loadingâ¦"});if(!d(o?.id,x()))return e.jsx(h,{});const n=[{to:"/admin/growth",label:"Today",exact:!0},{to:"/admin/growth/targets",label:"Targets",exact:!1},{to:"/admin/growth/posts",label:"Posts",exact:!1},{to:"/admin/growth/review",label:"Review",exact:!1}];return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-5 flex items-center gap-4",children:[e.jsx("h1",{className:"text-lg font-semibold",children:"X Growth Ops"}),e.jsx("nav",{className:"flex gap-1","aria-label":"Growth sections",children:n.map(t=>{const i=t.exact?s.pathname===t.to:s.pathname.startsWith(t.to);return e.jsx(a,{to:t.to,className:`rounded-md px-2.5 py-1 text-sm ${i?"bg-primary/10 font-medium text-primary":"text-muted-foreground hover:bg-accent hover:text-foreground"}`,children:t.label},t.to)})})]}),e.jsx(l,{})]})}export{v 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.