import PropTypes from 'prop-types'; // material-ui import { Box, Chip, Grid, Stack, Typography } from '@mui/material'; // project import import MainCard from 'components/MainCard'; // assets import { RiseOutlined, FallOutlined } from '@ant-design/icons'; // ==============================|| STATISTICS - ECOMMERCE CARD ||============================== // const AnalyticEcommerce = ({ color, title, count, percentage, isLoss, extra }) => ( {title} {count} {percentage && ( {!isLoss && } {isLoss && } } label={`${percentage}%`} sx={{ ml: 1.25, pl: 1 }} size="small" /> )} You made an extra{' '} {extra} {' '} this year ); AnalyticEcommerce.propTypes = { color: PropTypes.string, title: PropTypes.string, count: PropTypes.string, percentage: PropTypes.number, isLoss: PropTypes.bool, extra: PropTypes.oneOfType([PropTypes.node, PropTypes.string]) }; AnalyticEcommerce.defaultProps = { color: 'primary' }; export default AnalyticEcommerce;