import Image from "@/components/Image" import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" import Caption from "@/components/TempDesignSystem/Text/Caption" import styles from "./summaryCard.module.css" interface SummaryCardProps { title: string image: { src: string alt: string } texts: string[] supportingText?: string links?: { href: string text: string icon: React.ReactNode }[] chip?: React.ReactNode } export default function SummaryCard({ title, texts, image, supportingText, links, chip, }: SummaryCardProps) { return (
{image.alt}
{title} {texts.map((text) => ( {text} ))}
{supportingText && ( {supportingText} )}
{chip} {links && (
{links.map((link) => ( {link.icon} {link.text} ))}
)}
) }