import React from 'react'; import { MoreVertical } from 'lucide-react'; export default function ProfitTable({ data = [] }) { const formatCurrency = (val) => { return new Intl.NumberFormat('en-AE', { style: 'currency', currency: 'AED' }).format(val); }; return (
| Month | Income | Expense | Profit | Status |
|---|---|---|---|---|
| No trend data available for the selected period. | ||||
| {row.month} | {formatCurrency(row.income)} | {formatCurrency(row.expense)} | = 0 ? 'text-blue-500' : 'text-rose-500'}`}> {formatCurrency(row.profit)} | {row.status} |