// MUI Imports
import Grid from '@mui/material/Grid2'

// Types Imports
import type { CardStatsHorizontalWithAvatarProps } from '@/types/pages/widgetTypes'

// Component Imports
import CardStatsHorizontalWithAvatar from '@components/card-statistics/HorizontalWithAvatar'

const data: CardStatsHorizontalWithAvatarProps[] = [
  {
    stats: '10.495.100',
    title: 'Bulan Ini',
    avatarIcon: 'tabler-calendar-month',
    avatarColor: 'warning'
  },
  {
    stats: '25.868.800',
    title: '30 Hari Lalu',
    avatarIcon: 'tabler-calendar-time',
    avatarColor: 'error'
  },
  {
    stats: '17.903.400',
    title: 'Belum Dibayar',
    avatarIcon: 'tabler-clock-exclamation',
    avatarColor: 'warning'
  },
  {
    stats: '13.467.200',
    title: 'Jatuh Tempo',
    avatarIcon: 'tabler-calendar-due',
    avatarColor: 'success'
  }
]

const ExpenseListCard = () => {
  return (
    data && (
      <Grid container spacing={6}>
        {data.map((item, index) => (
          <Grid size={{ xs: 12, sm: 6, md: 3 }} key={index}>
            <CardStatsHorizontalWithAvatar {...item} avatarSkin='light' />
          </Grid>
        ))}
      </Grid>
    )
  )
}

export default ExpenseListCard
