import { ComponentChildren, HTMLAttributes } from "preact"; import { Link } from "./Button.js"; import Icon from "./Icon.js"; import { useTranslation } from "react-i18next"; 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) { const { t } = useTranslation(); return (
{imageUrl && }

{iconSvg && }{" "} {title}

{children}
{moreInfoUrl && (
{t("components.link_learn_more")}
)}
) }