/** * Card component. */ const Card = ( { title, children, className = '', actions, icon } ) => { return (
{ ( title || actions ) && (
{ icon && { icon } } { title &&

{ title }

}
{ actions && (
{ actions }
) }
) }
{ children }
); }; export default Card;