import { ComponentChildren, HTMLAttributes } from "preact"; import { Link } from "./Button.js"; import Icon from "./Icon.js"; import { t } from "../i18n.js"; interface CardProps extends Omit, "title"> { title: ComponentChildren; imageUrl?: string; iconSvg?: string; className?: string; moreInfoUrl?: string; children: ComponentChildren; } export default function Card({ title, children, imageUrl, iconSvg, className, moreInfoUrl, ...restProps }: CardProps) { return ( {imageUrl && } {iconSvg && }{" "} {title} {children} {moreInfoUrl && ( {t("components.link_learn_more")} )} ) }