import React from 'react'; import { Card, Spin } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; const ChartCard = ({ loading = false, contentHeight, title, avatar, action, total, footer, children, ...rest }) => { const content = (
{ avatar }
{title} {action}
{ // eslint-disable-next-line total && (
) }
{ children && (
{children}
) } { footer && (
{footer}
) }
); return ( {{content}} ); }; export default ChartCard;