import React from "react"; import { View, ScrollView, Pressable } from "react-native"; import { router } from "expo-router"; import { Text } from "@/components/ui/text"; import { Card } from "@/components/ui/card"; import { FileText, Wallet, ChevronRight, TrendingUp, TrendingDown, Clock, } from "@/lib/icons"; import { ScreenWrapper } from "@/components/ScreenWrapper"; import { ShadowWrapper } from "@/components/ShadowWrapper"; import { StandardHeader } from "@/components/StandardHeader"; import { MOCK_INVOICES, MOCK_PAYMENTS } from "@/lib/mock-data"; export default function HistoryScreen() { // Combine and sort by date (mocking real activity) const activity = [ ...MOCK_INVOICES.map((inv) => ({ id: `inv-${inv.id}`, type: "Invoice Sent", title: inv.recipient, amount: inv.amount, date: inv.createdAt, icon: , })), ...MOCK_PAYMENTS.map((pay) => ({ id: `pay-${pay.id}`, type: "Payment Received", title: pay.source, amount: pay.amount, date: pay.date, icon: , })), ].sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()); return ( Inflow $4,120 Pending $1,540 Recent Activity {activity.map((item) => ( {item.icon} {item.title} {item.type} ยท {item.date} {item.type.includes("Payment") ? "+" : ""}$ {item.amount.toLocaleString()} Success ))} ); }