import type { HTMLAttributes, ReactNode } from 'react';
type CardProps = HTMLAttributes & {
title?: ReactNode;
description?: ReactNode;
actions?: ReactNode;
};
export function Card({ title, description, actions, className = '', children, ...props }: CardProps) {
return (
{(title || description || actions) && (
{title &&
{title}
}
{description &&
{description}
}
{actions &&
{actions}
}
)}
{children}
);
}