import React from 'react'; export interface CardProps extends React.HTMLAttributes { title?: string; subtitle?: string; action?: React.ReactNode; } export const Card: React.FC = ({ title, subtitle, action, children, className = '', ...props }) => { return (
{(title || action) && (
{title &&

{title}

} {subtitle &&

{subtitle}

}
{action &&
{action}
}
)}
{children}
); };