import type { BlogPost } from 'brainerce'; import { buildArticleJsonLd, buildBreadcrumbJsonLd } from 'brainerce'; import { getNonce } from '@/core/lib/nonce'; import { getCanonicalSiteUrl } from '@/core/lib/site-url'; interface ArticleJsonLdProps { post: BlogPost; url: string; /** Store display name — feeds Article.publisher (and the author fallback). */ organizationName?: string; /** * The BreadcrumbList trail, absolute URLs, last item = this post. Names come * from the message files in the request locale, never hardcoded here. */ breadcrumbs: Array<{ name: string; url: string }>; } /** * Article + BreadcrumbList structured data for a blog post page. * * Uses the SDK builders for the schema shape, but renders the