import React from 'react'; import { Icon } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; const NumberInfo = ({ theme, title, subTitle, total, subTotal, status, suffix, gap, ...rest }) => (
{title && (
{title}
)} {subTitle && (
{subTitle}
)}
{total} {suffix && {suffix}} {(status || subTotal) && ( {subTotal} {status && } )}
); export default NumberInfo;