// @flow import type { Node } from 'react'; import React from 'react'; import classnames from 'classnames'; import Icon from 'component/common/icon'; type Props = { title?: string | Node, subtitle?: string | Node, body?: string | Node, actions?: string | Node, icon?: string, className?: string, actionIconPadding?: boolean, }; export default function Card(props: Props) { const { title, subtitle, body, actions, icon, className, actionIconPadding = true } = props; return (
{(title || subtitle) && (
{icon && }

{title}

{subtitle &&
{subtitle}
}
)} {body &&
{body}
} {actions && (
{actions}
)}
); }