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 { FallOutlined, RiseOutlined } from '@ant-design/icons'; // ==============================|| STATISTICS - ECOMMERCE CARD ||============================== // const AnalyticEcommerce = ({ color = 'primary', 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 = { title: PropTypes.string, count: PropTypes.string, percentage: PropTypes.number, isLoss: PropTypes.bool, color: PropTypes.string, extra: PropTypes.string }; export default AnalyticEcommerce;