import React from 'react'; import { cx } from '@emotion/css'; export interface CardProps { logoUrl?: string; title: string; description?: string; labels?: React.ReactNode; actions?: React.ReactNode; onClick?: () => void; ariaLabel?: string; className?: string; } export const Card: React.FC = ({ logoUrl, title, description, labels, actions, onClick, ariaLabel, className, }) => { const mainClassName = cx('add-data-source-item', className); return (
{logoUrl && }
{title} {description && {description}} {labels &&
{labels}
}
{actions &&
{actions}
}
); };