type CardProps = { title?: React.ReactNode; children: React.ReactNode; actions?: React.ReactNode; }; export default function Card({ title, children, actions }: CardProps) { return (
{(title || actions) && (
{title && (typeof title === "string" ?

{title}

:
{title}
)} {actions &&
{actions}
}
)}
{children}
); }