pos-dashboard-v2/src/views/apps/report/ReportFinancialList.tsx

54 lines
1.4 KiB
TypeScript
Raw Normal View History

2025-09-11 17:57:00 +07:00
'use client'
2025-09-11 15:32:26 +07:00
import { Container, Typography } from '@mui/material'
import Grid from '@mui/material/Grid2'
import ReportCard from './ReportCard'
2025-09-11 17:57:00 +07:00
import { getLocalizedUrl } from '@/utils/i18n'
import { Locale } from '@/configs/i18n'
import { useParams } from 'next/navigation'
2025-09-11 15:32:26 +07:00
const ReportFinancialList: React.FC = () => {
2025-09-11 17:57:00 +07:00
const { lang: locale } = useParams()
2025-09-11 15:32:26 +07:00
const financialReports = [
{
title: 'Arus Kas',
2025-09-11 17:57:00 +07:00
iconClass: 'tabler-cash',
link: getLocalizedUrl(`/apps/report/cash-flow`, locale as Locale)
2025-09-11 15:32:26 +07:00
},
{
title: 'Laba Rugi',
2025-09-11 17:57:00 +07:00
iconClass: 'tabler-cash',
link: getLocalizedUrl(`/apps/report/profit-loss`, locale as Locale)
2025-09-11 15:32:26 +07:00
},
{
title: 'Neraca',
2025-09-11 17:57:00 +07:00
iconClass: 'tabler-cash',
2025-09-11 18:29:17 +07:00
link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale)
2025-09-11 20:43:15 +07:00
},
{
title: 'Ringkasan Eksekutif',
iconClass: 'tabler-cash',
link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale)
2025-09-11 15:32:26 +07:00
}
]
return (
<div>
2025-09-11 20:43:15 +07:00
<Typography variant='h5' className='mbe-2'>
2025-09-11 15:32:26 +07:00
Finansial
</Typography>
<Grid container spacing={3}>
{financialReports.map((report, index) => (
<Grid key={index} size={{ xs: 12, sm: 4, md: 3 }}>
2025-09-11 17:57:00 +07:00
<ReportCard title={report.title} avatarIcon={report.iconClass} href={report.link} />
2025-09-11 15:32:26 +07:00
</Grid>
))}
</Grid>
</div>
)
}
export default ReportFinancialList