// @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, }; export default function Card(props: Props) { const { title, subtitle, body, actions, icon } = props; return (
{icon && }

{title}

{subtitle}

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