import Link from '@/components/Link'; import Icon from '@/components/Icon'; export function Cards({ children, ...props }) { return
{children}
; } export function Card({ children, title, icon, href, ...props }) { let Component: typeof Link | string = Link; if (!href) { Component = 'div'; } return (
{icon && } {title &&
{title}
} {children}
{href && (
)}
); }