import React from 'react'; import { MoreVertical, ArrowDownRight, ArrowUpRight } from 'lucide-react'; export default function AccountsTable({ data = [] }) { const formatCurrency = (val) => { return new Intl.NumberFormat('en-AE', { style: 'currency', currency: 'AED' }).format(val); }; return (

Recent Transactions

Detailed breakdown of income and expenses.

{data.length === 0 && ( )} {data.map((row, index) => ( ))}
Date Type Category / Description Amount
No transactions found for the selected period.
{new Date(row.date).toLocaleDateString()} {new Date(row.date).toLocaleDateString(undefined, { weekday: 'short' })}
{row.type === 'Income' ? : } {row.type}
{row.category} {row.description || 'No description provided'}
{row.type === 'Income' ? '+' : '-'}{formatCurrency(row.amount)}
); }