import Image from "@/components/Image" import Chip from "@/components/TempDesignSystem/Chip" import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import styles from "./contentCard.module.css" import type { ContentCardProps } from "./contentCard" export default function ContentCard({ heading, image, bodyText, promoText, className = "", link, }: ContentCardProps) { const card = (
{image.meta.alt {promoText ? ( {promoText} ) : null}
{heading} {bodyText}
) if (!link) return card const linkProps = { ...(link.openInNewTab && { target: "_blank", rel: "noopener noreferrer", }), } return ( {card} ) }