import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { RemitStatusBadge } from "@/components/StatusBadge"; import { useAppStore } from "@/store"; import { fmt } from "@/lib/format"; export function Remittances() { const remits = useAppStore((s) => s.remittances); const total = remits.reduce( (acc, r) => ({ paid: acc.paid + r.paidAmount, adjustments: acc.adjustments + r.adjustmentAmount, }), { paid: 0, adjustments: 0 } ); return (
Remittances

835 remittances

Electronic remittance advice from payers, matched to submitted claims.

Remits
{fmt.num(remits.length)}
Total paid
{fmt.usd(total.paid)}
Adjustments
{fmt.usd(total.adjustments)}
Remit Claim Payer Paid Adjustment Status Received {remits.length === 0 ? ( No remittances yet. ) : ( remits.map((r) => ( {r.id} {r.claimId} {r.payerName} {fmt.usdPrecise(r.paidAmount)} {fmt.usdPrecise(r.adjustmentAmount)} {fmt.dateShort(r.receivedDate)} )) )}
); }