/* ═══════════════════════════════════════════════════════════════
BLOG POST: /blog/:id
One of our own posts: cover, date and tags, the content-block
body, then its authors as person tiles. Authors are published
people (linked to their pages) and, when the post names one, a
guest with no people record (a tile that links nowhere).
There's no /blog index on purpose: the Community page's blog
section is where posts are listed, so "back" goes there.
═══════════════════════════════════════════════════════════════ */
import { Link, useParams } from "react-router-dom"
import PageShell, { type ShellSection } from "../components/PageShell.tsx"
import PageState from "../components/PageState.tsx"
import ContentBlocks from "../components/ContentBlocks.tsx"
import PeopleTiles from "../components/PeopleTiles.tsx"
import { mediaUrl } from "../lib/media.ts"
import { postDate, useBlogPost } from "../lib/useBlog.ts"
import { accentText, BRAND } from "../lib/color.ts"
import PostContents from "../components/PostContents.tsx"
import { headingAnchors } from "../lib/contents.ts"
import QrCode from "../components/QrCode.tsx"
import RequestLink from "../components/RequestLink.tsx"
import { siteUrl } from "../lib/site.ts"
import { FilePdf } from "@phosphor-icons/react"
const BODY = "var(--color-muted)"
/* Where "back" goes: the section on the Community page. */
const BACK = { to: "/community#blog", label: "Community Blog" }
export default function BlogPost() {
const { id } = useParams()
const { data: post, loading, error, notFound, reload } = useBlogPost(id)
if (!post) {
return (