import{j as r}from"./jsx-runtime.D_zvdyIk.js";import{R as p}from"./router.B9yJslVs.js";import{u}from"./useTranslation.Dg7DwAC5.js";import{r as c}from"./route.D5BPSNZk.js";import{c as e}from"./utils.BZbvJs_N.js";import{l as d}from"./utils.D6Ui05B2.js";import"./site.Deo0TYgJ.js";import"./index.RTTH55m1.js";import"./index.BIRwh3HZ.js";import"./_commonjsHelpers.CqkleIqs.js";import"./index.3whys8t3.js";import"./site-config.CgQ_bxrG.js";function w({posts:s,currentPostSlug:i,className:m,locale:a}){const{t:n}=u();return s?.length?r.jsx("div",{className:e("flex flex-col gap-1",m),children:s.map(t=>{const l=d(c(p.Post,t),a),o=t.slug===i;return r.jsxs("a",{href:l,className:e("group relative flex items-start gap-3 rounded-md px-1 py-2 transition-colors","hover:bg-accent/50",o&&"font-medium text-primary"),children:[r.jsx("span",{className:e("mt-2 h-2 w-2 shrink-0 rounded-full transition-colors",o?"bg-primary":"bg-muted-foreground/40 group-hover:bg-muted-foreground/60")}),r.jsx("span",{className:e("line-clamp-2 flex-1 text-sm leading-relaxed transition-colors",o?"text-primary":"text-foreground group-hover:text-primary"),children:t.title})]},t.slug)})}):r.jsx("div",{className:"py-8 text-center text-muted-foreground text-sm",children:n("series.noPosts")})}export{w as SeriesPostList};
