feat: implement AGB History with dynamic CMS fetching

This commit is contained in:
2026-04-27 12:11:11 +02:00
parent 24a19adf19
commit 909bad573b
7 changed files with 181 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ import GallerySection from '@/components/home/GallerySection';
import VideoSection from '@/components/home/VideoSection';
import CTA from '@/components/home/CTA';
import { PDFDownloadBlock } from '@/components/PDFDownloadBlock';
import { AgbHistoryBlock } from '@/components/AgbHistoryBlock';
/**
* Splits a text string on \n and intersperses <br /> elements.
@@ -436,6 +437,8 @@ const jsxConverters: JSXConverters = {
'block-pdfDownload': ({ node }: any) => (
<PDFDownloadBlock label={node.fields.label} style={node.fields.style} />
),
agbHistory: ({ node }: any) => <AgbHistoryBlock title={node.fields.title} />,
'block-agbHistory': ({ node }: any) => <AgbHistoryBlock title={node.fields.title} />,
// ─── New Page Blocks ───────────────────────────────────────────
heroSection: ({ node }: any) => {
const f = node.fields;