import{o as e}from"./useStore-BLH_7XFg.js";import{T as t}from"./dist-C9VbCov8.js";import{i as n,m as r,p as i}from"./index-C4A4GzcU.js";var a=e();function o(){let e=n.useLoaderData(),o=e.body.split(/\n\n+/).map(e=>e.trim()).filter(Boolean);return(0,a.jsxs)(r,{children:[(0,a.jsx)(i,{title:e.title,intro:e.excerpt}),(0,a.jsxs)(`article`,{className:`mx-auto max-w-2xl px-4 py-10 prose prose-neutral`,children:[(0,a.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:new Date(e.date).toLocaleDateString(`sr-Latn-RS`)}),(0,a.jsx)(`div`,{className:`mt-6 space-y-4`,children:o.map((e,t)=>e.startsWith(`## `)?(0,a.jsx)(`h2`,{className:`pt-4 text-2xl`,children:e.slice(3)},t):(0,a.jsx)(`p`,{className:`text-lg leading-relaxed text-foreground`,children:e},t))}),(0,a.jsxs)(`div`,{className:`mt-10 rounded-2xl bg-secondary/40 p-6 text-center`,children:[(0,a.jsx)(`p`,{className:`text-lg`,children:`Spremni za termin u našem salonu u Novom Sadu?`}),(0,a.jsx)(t,{to:`/zakazivanje`,className:`mt-3 inline-flex items-center justify-center rounded-md bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Zakaži termin online`})]}),(0,a.jsx)(`p`,{className:`mt-10`,children:(0,a.jsx)(t,{to:`/blog`,className:`text-primary hover:underline`,children:`← Nazad na blog`})})]})]})}export{o as component};