// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Avatar from '@mui/material/Avatar' import Typography from '@mui/material/Typography' import IconButton from '@mui/material/IconButton' import CardHeader from '@mui/material/CardHeader' import CardContent from '@mui/material/CardContent' import LinearProgress from '@mui/material/LinearProgress' // ** Icons Imports import MenuUp from 'mdi-material-ui/MenuUp' import DotsVertical from 'mdi-material-ui/DotsVertical' // ** Types import { ThemeColor } from '../../core/layouts/types' interface DataType { title: string imgSrc: string amount: string subtitle: string progress: number color: ThemeColor imgHeight: number } const data: DataType[] = [ { progress: 75, imgHeight: 20, title: 'Zipcar', color: 'primary', amount: '$24,895.65', subtitle: 'Vuejs, React & HTML', imgSrc: '/images/cards/logo-zipcar.png' }, { progress: 50, color: 'info', imgHeight: 27, title: 'Bitbank', amount: '$8,650.20', subtitle: 'Sketch, Figma & XD', imgSrc: '/images/cards/logo-bitbank.png' }, { progress: 20, imgHeight: 20, title: 'Aviato', color: 'secondary', amount: '$1,245.80', subtitle: 'HTML & Angular', imgSrc: '/images/cards/logo-aviato.png' } ] const TotalEarning = () => { return ( } /> `${theme.spacing(2.25)} !important` }}> $24,895 10% Compared to $84,325 last year {data.map((item: DataType, index: number) => { return ( `rgba(${theme.palette.customColors.main}, 0.04)` }} > {item.title} {item.title} {item.subtitle} {item.amount} ) })} ) } export default TotalEarning