import{j as e,O as n,g as i}from"./vendor-laZsiqLO.js";import{u as l}from"./useTranslation-BW0o-tkY.js";function c({topStories:t}){const{t:s}=l();return!t||t.length===0?null:e.jsx("aside",{className:"lg:sticky lg:top-24",children:e.jsxs("div",{className:"rounded-xl border border-border bg-card shadow-sm overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 px-5 py-4 border-b bg-muted/30",children:[e.jsx(n,{className:"w-4 h-4 text-primary"}),e.jsx("h3",{className:"font-bold text-sm uppercase tracking-wider text-foreground",children:s("_top_stories","Top Stories")})]}),e.jsx("div",{className:"p-2",children:t.map((r,a)=>e.jsxs("div",{className:"group relative flex items-start gap-4 p-3 rounded-lg hover:bg-muted/50 transition-colors border-b border-border/40 last:border-0",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:e.jsx("span",{className:"text-2xl font-black text-muted-foreground/20 group-hover:text-primary/30 transition-colors tabular-nums",children:String(a+1).padStart(2,"0")})}),e.jsxs("div",{className:"space-y-1.5 flex-1 min-w-0",children:[r.category&&e.jsx("span",{className:"text-[10px] font-bold text-primary uppercase tracking-widest block",children:r.category.name}),e.jsx("h4",{className:"font-bold text-sm leading-snug text-foreground/90 group-hover:text-primary transition-colors line-clamp-3",children:e.jsx(i,{href:r.route_url,className:"block",children:r.title})})]})]},r.id))}),e.jsx("div",{className:"px-5 py-3 bg-muted/20 border-t flex justify-center",children:e.jsx("p",{className:"text-[10px] text-muted-foreground font-medium uppercase tracking-tighter",children:new Date().toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})})})]})})}export{c as default};
