// ** React Imports
import { ReactElement } from 'react'
// ** MUI Imports
import Box from '@mui/material/Box'
import Grid from '@mui/material/Grid'
import Card from '@mui/material/Card'
import Avatar from '@mui/material/Avatar'
import CardHeader from '@mui/material/CardHeader'
import IconButton from '@mui/material/IconButton'
import Typography from '@mui/material/Typography'
import CardContent from '@mui/material/CardContent'
// ** Icons Imports
import TrendingUp from 'mdi-material-ui/TrendingUp'
import CurrencyUsd from 'mdi-material-ui/CurrencyUsd'
import DotsVertical from 'mdi-material-ui/DotsVertical'
import CellphoneLink from 'mdi-material-ui/CellphoneLink'
import AccountOutline from 'mdi-material-ui/AccountOutline'
// ** Types
import { ThemeColor } from '../core/layouts/types'
interface DataType {
stats: string
title: string
color: ThemeColor
icon: ReactElement
}
const salesData: DataType[] = [
{
stats: '245k',
title: 'Sales',
color: 'primary',
icon:
},
{
stats: '12.5k',
title: 'Customers',
color: 'success',
icon:
},
{
stats: '1.54k',
color: 'warning',
title: 'Products',
icon:
},
{
stats: '$88k',
color: 'info',
title: 'Revenue',
icon:
}
]
const renderStats = () => {
return salesData.map((item: DataType, index: number) => (
{item.icon}
{item.title}
{item.stats}
))
}
const StatisticsCard = () => {
return (
}
subheader={
Total 48.5% growth
{' '}
😎 this month
}
titleTypographyProps={{
sx: {
mb: 2.5,
lineHeight: '2rem !important',
letterSpacing: '0.15px !important'
}
}}
/>
`${theme.spacing(3)} !important` }}>
{renderStats()}
)
}
export default StatisticsCard