/**
 * Section markup of /thought-leadership-articles, keyed by CMS section key (markup
 * unchanged from the static page).
 *
 * The "articles" section only holds the list's labels (hidden heading, "All" tab,
 * no-results text). The tabs, cards and pagination come from the articles API
 * (ArticleListing); until an article is published the static page's placeholder list
 * is shown.
 */
import { ArticleListing } from "@/app/(site)/_components/articles/ArticleListing";
import type { ArticleListingContent, PageHeroContent } from "@/app/(site)/_lib/pageContent";
import { PageHero } from "../blocks";
import type { SectionRenderers } from "../render";

export const THOUGHT_LEADERSHIP_SECTIONS: SectionRenderers = {
  "page-hero": (c: PageHeroContent) => <PageHero c={c} wrap />,
  // Without `initial` (admin preview) the list loads its articles in the browser.
  articles: (c: ArticleListingContent) => <ArticleListing c={c} />,
};
