import { ReactNode } from 'react'; interface CardProps { children: ReactNode; className?: string; title?: string; actions?: ReactNode; } export default function Card({ children, className = '', title, actions }: CardProps) { return (
{(title || actions) && (
{title &&

{title}

} {actions &&
{actions}
}
)}
{children}
); }