import type { ComponentChildren } from 'preact' interface Props { title?: ComponentChildren, link?: string, overlay?: ComponentChildren, children?: ComponentChildren, } export function Card({ title, overlay, link, children }: Props) { const content = <> {overlay && {overlay}}
{title &&

{title}

} {children}
return link === undefined ?
{content}
: {content} }