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

// Type Imports
import type { UserDataType } from '@components/card-statistics/HorizontalWithSubtitle'

// Component Imports
import HorizontalWithSubtitle from '@components/card-statistics/HorizontalWithSubtitle'

// Vars
const data: UserDataType[] = [
  {
    title: 'PERUBAHAN KAS',
    stats: '14.784.651',
    avatarIcon: 'tabler-trending-up',
    avatarColor: 'success',
    trend: 'positive',
    trendNumber: '50,2%',
    subtitle: 'Bulan Ini vs bulan sebelumnya'
  },
  {
    title: 'SALDO PENUTUPAN',
    stats: '73.041.637',
    avatarIcon: 'tabler-trending-up',
    avatarColor: 'success',
    trend: 'positive',
    trendNumber: '100%',
    subtitle: 'Bulan Ini vs 1 bulan lalu'
  },
  {
    title: 'KAS KELUAR',
    stats: '11.484.350',
    avatarIcon: 'tabler-trending-up',
    avatarColor: 'success',
    trend: 'positive',
    trendNumber: '93,3%',
    subtitle: 'Bulan Ini vs bulan sebelumnya'
  },
  {
    title: 'KAS MASUK',
    stats: '26.269.001',
    avatarIcon: 'tabler-trending-up',
    avatarColor: 'success',
    trend: 'positive',
    trendNumber: '92,5%',
    subtitle: 'Bulan Ini vs bulan sebelumnya'
  }
]

const ReportCashFlowCard = () => {
  return (
    <Grid container spacing={6}>
      {data.map((item, i) => (
        <Grid key={i} size={{ xs: 12, sm: 6, md: 3 }}>
          <HorizontalWithSubtitle {...item} />
        </Grid>
      ))}
    </Grid>
  )
}

export default ReportCashFlowCard
