import Body from "@scandic-hotels/design-system/Body" import Chip from "@scandic-hotels/design-system/Chip" import Image from "@scandic-hotels/design-system/Image" import Link from "@scandic-hotels/design-system/Link" import Subtitle from "@scandic-hotels/design-system/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} ) }