Spaces:
Build error
Build error
File size: 1,261 Bytes
c1c831b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | export default function TransactionHistory() {
// Mock transaction data
const transactions = [
{ id: 1, amount: "500 DJF", from: "Waafi", to: "DMoney", phone: "77 123 4567", date: "10/05/2023" },
{ id: 2, amount: "1000 DJF", from: "DMoney", to: "Waafi", phone: "77 987 6543", date: "09/05/2023" },
{ id: 3, amount: "750 DJF", from: "Waafi", to: "DMoney", phone: "77 555 1234", date: "08/05/2023" },
];
return (
<div className="bg-white rounded-xl shadow-lg p-6 mt-6">
<h2 className="text-lg font-bold text-gray-800 mb-4">Historique des transactions</h2>
<div className="space-y-3">
{transactions.map((transaction) => (
<div key={transaction.id} className="flex justify-between items-center border-b pb-3">
<div>
<div className="font-medium">{transaction.amount}</div>
<div className="text-sm text-gray-500">
{transaction.from} → {transaction.to}
</div>
</div>
<div className="text-right">
<div className="text-sm">{transaction.phone}</div>
<div className="text-xs text-gray-400">{transaction.date}</div>
</div>
</div>
))}
</div>
</div>
);
} |