import React from 'react'; import classNames from 'classnames'; export default props => { const { prefixCls = 'ant-card', className, children, extra, bodyStyle, title, ...other } = props; const classString = classNames({ [prefixCls]: true, [className]: !!className, }); const head = title ? (

{title}

) : null; return (
{head} {extra ?
{extra}
: null}
{children}
); };