import { ComponentChildren, HTMLAttributes } from "preact";
import { Link } from "./Button";
import Icon from "./Icon";
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 && (
Learn more...
)}
)
}