import type { ReactNode } from 'react'; interface EmptyStateCardProps { icon: ReactNode; title: string; description: string; actionLabel?: string; onAction?: () => void; /** `data-testid` for the action button, so callers can target it distinctly from other same-labeled buttons on the page. */ actionTestId?: string; footer?: ReactNode; className?: string; } const EmptyStateCard = ({ icon, title, description, actionLabel, onAction, actionTestId, footer, className = '', }: EmptyStateCardProps) => { return (
{icon}

{title}

{description}

{actionLabel && onAction ? ( ) : null} {footer}
); }; export default EmptyStateCard;