import { HTMLAttributes, ReactNode } from 'react'; interface CardProps extends HTMLAttributes { title?: string; children: ReactNode; } export function Card({ title, children, className = '', ...props }: CardProps) { return ( {title && {title}} {children} ); }