1import{j as e,L as t,U as n,s as o}from"./index-BTz-t5TX.js";import{u as d}from"./useQuery-lp6BC1FR.js";import{A as l}from"./arrow-left-DDPSc2Gw.js";function x(){const{data:r,isLoading:i}=d({queryKey:["forum","members"],queryFn:async()=>{const{data:s,error:a}=await o.from("profiles").select("id, display_name, username").order("display_name",{nullsFirst:!1});if(a)throw a;return s??[]}});return e.jsxs("div",{className:"mx-auto max-w-5xl px-6 py-12",children:[e.jsxs(t,{to:"/forum",className:"inline-flex items-center gap-2 text-xs uppercase tracking-widest text-muted-foreground hover:text-primary",children:[e.jsx(l,{className:"size-3.5"})," Forum"]}),e.jsx("h1",{className:"mt-4 font-serif text-4xl text-foreground",children:"Älanovi"}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[r?.length??0," registriranih Älanova."]}),i?e.jsx("p",{className:"mt-8 text-muted-foreground",children:"UÄitavanjeâ¦"}):e.jsx("ul",{className:"mt-8 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:r?.map(s=>e.jsx("li",{children:e.jsx(t,{to:"/users/$id",params:{id:s.id},className:"block rounded-lg border border-border bg-surface p-4 transition-colors hover:border-primary/40",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(n,{userId:s.id,size:44}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-medium text-foreground",children:s.display_name??s.username??"Älan"}),s.username&&e.jsxs("p",{className:"truncate text-xs text-muted-foreground",children:["@",s.username]})]})]})})},s.id))})]})}export{x 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.