+ {page?.title} +
+ ) : null} + + {/* Hero Banner Image (from the first page_component if available) */} + {page?.page_components?.[0].hero_banner.banner_image?.url ? ( +
+ {page?.page_components?.map((item, index) => {
+ // --- HERO BANNER BLOCK ---
+ if (item.hero_banner) {
+ return (
+
+
+ {/* Banner Title */}
+ {item.hero_banner.banner_title ? (
+
+ );
+ }
+
+ // --- RECENT ARTICLES BLOCK ---
+ else if (item.recent_articles) {
+ return (
+ {item.hero_banner.banner_title}
+ ) : null} + + {/* Banner Description */} + {item.hero_banner.banner_description ? ( + + ) : null} +
+ {/* Recent Articles Title */}
+
+ );
+ }
+
+ // --- DUAL CONTENT CTA BLOCK ---
+ else if (item.dual_content_cta) {
+ return (
+ {item.recent_articles.title}
+ + {/* Recent Articles Subtitle */} + {item.recent_articles.subtitle ? ( +
+ {item.recent_articles.subtitle}
+
+ ) : null}
+
+
+ );
+ }
+
+ return null;
+ })}
+