import React from "react"; import type { SolutionsData } from "../types"; interface SolutionsSectionProps { data: SolutionsData; } export function SolutionsSection({ data }: SolutionsSectionProps) { const hero = data.hero ?? { title: data.title }; return (
{hero.eyebrow && (

{hero.eyebrow}

)}

{hero.title || data.title}

{(hero.subtitle || hero.description) && (

{hero.subtitle ?? hero.description}

)}
{data.items.map((item) => (
{item.tag && (
{item.tag}
)}

{item.title}

{item.summary}

    {item.bullets.map((bullet, index) => (
  • ))}
{item.badges && item.badges.length > 0 && (
{item.badges.map((badge, index) => { const isPrimary = index === 0; return ( {badge} ); })}
)}
{item.title}
))}
); }