/* global React */ function PostV6() { const params = new URLSearchParams(window.location.search); const slug = params.get("slug"); const posts = window.POSTS || []; const post = posts.find((p) => p.slug === slug) || posts[0]; const product = post && post.relatedProduct ? (window.PRODUCTS || []).find((p) => p.id === post.relatedProduct) : null; if (!post) return
Post not found.
; return (
Contact Browse visuals
← Blog
{post.category} {new Date(post.date).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" })}

{post.title}

{post.body.map((block, i) => block.h ?

{block.h}

: block.ul ?
    {block.ul.map((li, j) =>
  • {li}
  • )}
:

{block.p}

)}
{product && (
Related visual
{product.name} →
)}
); } window.PostV6 = PostV6;