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

████████████████████████

██████ ███████████████████

██████████████ ██████████

█████ ██████ █████████████

███████████ ██████████ ███

); } const head = title ? (

{title}

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