// UpsellSummary.jsx import { Button } from './ui/button.js'; export default function UpsellSummary({ row, onUpgrade, isPremium }) { if (!row) return null; const niceMoney = n => '$' + Number(n).toLocaleString(); return (
With a payment of {niceMoney(row.totalMonthlyPayment)}/mo{' '} you’d spend {niceMoney(row.totalLoanCost)} over the loan term and still net about{' '} {niceMoney(row.netGain)} {' '} after pay-off.
{isPremium ? ( ) : ( )}