import * as React from 'react'; import { cn } from '../../lib/utils'; import { Tooltip } from './tooltip'; interface CardProps extends React.HTMLAttributes { title?: string; tooltip?: string; description?: string; headerAction?: React.ReactNode; } const Card = React.forwardRef( ( { className, title, tooltip, description, headerAction, children, ...props }, ref ) => (
{ title && (

{ title }

{ tooltip && ( ) }
{ description &&

{ description }

}
{ headerAction &&
{ headerAction }
}
) }
{ children }
) ); Card.displayName = 'Card'; export default Card;