/**
 * Section renderers of the inner pages that read the CMS, with the class their
 * page.tsx puts on <SitePage> (page-scoped CSS such as `.product-services-page …`).
 * Used by the admin's live preview (/cms-preview/<key>) so it shows each section with
 * the website's own markup and CSS.
 *
 * Add a page here when it is added to PAGE_DEFAULTS (./registry.ts).
 */
import { ABOUT_SECTIONS } from "./about/sections";
import { AI_INNOVATION_LAB_SECTIONS } from "./ai-innovation-lab/sections";
import { ROADMAP_SECTIONS } from "./roadmap/sections";
import { MEDIA_INSIGHTS_SECTIONS } from "./media-insights/sections";
import { UNIONISTS_MAGAZINE_SECTIONS } from "./unionists-magazine/sections";
import { GLOBAL_PRESENCE_SECTIONS } from "./global-presence/sections";
import { DONATIONS_SECTIONS } from "./donations/sections";
import { CONTACT_SECTIONS } from "./contact/sections";
import { SOCIAL_RESPONSIBILITY_SECTIONS } from "./social-responsibility/sections";
import { SUSTAINABILITY_ESG_SECTIONS } from "./sustainability-esg/sections";
import { THOUGHT_LEADERSHIP_SECTIONS } from "./thought-leadership-articles/sections";
import { AWARDS_SECTIONS } from "./awards/sections";
import { CAREERS_SECTIONS } from "./careers/sections";
import { GLOBAL_AGRICULTURE_SECTIONS } from "./global-agriculture/sections";
import { GLOBAL_STRATEGY_SECTIONS } from "./global-strategy/sections";
import { INDUSTRIES_SECTIONS } from "./industries-we-serve/sections";
import { PARTNER_WITH_US_SECTIONS } from "./partner-with-us/sections";
import { PARTNERS_SECTIONS } from "./partners/sections";
import { PRODUCT_SERVICES_SECTIONS } from "./product-services/sections";
import type { SectionRenderers } from "./render";
import { SERVICE_SECTIONS } from "./service/sections";
import { SERVICES_SECTIONS } from "./services/sections";
import { TESTIMONIALS_SECTIONS } from "./testimonials/sections";
import { WHY_CHOOSE_US_SECTIONS } from "./why-choose-us/sections";

export const PAGE_RENDERERS: Record<string, { sections: SectionRenderers; className?: string }> = {
  about: { sections: ABOUT_SECTIONS, className: "about-page" },
  partners: { sections: PARTNERS_SECTIONS, className: "partners-page" },
  "why-choose-us": { sections: WHY_CHOOSE_US_SECTIONS, className: "why-choose-page" },
  careers: { sections: CAREERS_SECTIONS, className: "careers-page" },
  "global-strategy": { sections: GLOBAL_STRATEGY_SECTIONS, className: "global-strategy-page" },
  awards: { sections: AWARDS_SECTIONS, className: "awards-page" },
  testimonials: { sections: TESTIMONIALS_SECTIONS, className: "testimonials-page" },
  "partner-with-us": { sections: PARTNER_WITH_US_SECTIONS, className: "partner-with-us-page" },
  "sustainability-esg": { sections: SUSTAINABILITY_ESG_SECTIONS, className: "sustainability-esg-page" },
  "social-responsibility": { sections: SOCIAL_RESPONSIBILITY_SECTIONS, className: "social-responsibility-page" },
  roadmap: { sections: ROADMAP_SECTIONS },
  "thought-leadership-articles": { sections: THOUGHT_LEADERSHIP_SECTIONS },
  "ai-innovation-lab": { sections: AI_INNOVATION_LAB_SECTIONS },
  "media-insights": { sections: MEDIA_INSIGHTS_SECTIONS, className: "media-insights-page" },
  "unionists-magazine": { sections: UNIONISTS_MAGAZINE_SECTIONS },
  "global-presence": { sections: GLOBAL_PRESENCE_SECTIONS },
  donations: { sections: DONATIONS_SECTIONS, className: "donations-page" },
  contact: { sections: CONTACT_SECTIONS },
  "product-services": { sections: PRODUCT_SERVICES_SECTIONS, className: "product-services-page" },
  "global-agriculture": { sections: GLOBAL_AGRICULTURE_SECTIONS },
  services: { sections: SERVICES_SECTIONS, className: "services-page" },
  "industries-we-serve": { sections: INDUSTRIES_SECTIONS, className: "industries-page" },
  /** Every service page (/services/<slug>) and its card, edited in Services. */
  service: { sections: SERVICE_SECTIONS, className: "service-details-page" },
};
