// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Typography from '@mui/material/Typography' import CardHeader from '@mui/material/CardHeader' import CardContent from '@mui/material/CardContent' import LinearProgress from '@mui/material/LinearProgress' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Types import { ThemeColor } from 'src/@core/layouts/types' // ** Custom Components Imports import OptionsMenu from 'src/@core/components/option-menu' interface DataType { title: string amount: string progress: number color: ThemeColor } const data: DataType[] = [ { progress: 75, title: 'Amazon', color: 'primary', amount: '$24,453' }, { progress: 59, color: 'success', title: 'Flipkart', amount: '$12,763' }, { progress: 20, title: 'eBay', color: 'error', amount: '$4,978' } ] const CardTotalEarnings = () => { return ( } /> `${theme.spacing(2.5)} !important` }}> $42,880 22% Compared to $84,325 last year {data.map((item: DataType, index: number) => { return ( {item.title} {item.amount} ) })} ) } export default CardTotalEarnings