+ {/* Header */}
+
+
+
Accounts
+
+ Manage all your financial accounts in one place
+
+
+
+
+
+
+
+
+ {error && (
+
+ {error}
+
+ )}
+
+ {/* Summary Cards */}
+ {summary && (
+
+
+
+
+
+ Total Assets
+
+
+
+
+ ${summary.total_assets.toFixed(2)}
+
+ {summary.currency}
+
+
+
+
+
+
+
+ Total Liabilities
+
+
+
+
+ ${Math.abs(summary.total_liabilities).toFixed(2)}
+
+ Credit cards & loans
+
+
+
+
+
+
+
+ Net Worth
+
+
+
+
+ ${summary.net_worth.toFixed(2)}
+
+
+ Assets - Liabilities
+
+
+
+
+ )}
+
+ {/* Active Accounts */}
+
+
Active Accounts
+ {activeAccounts.length === 0 ? (
+
+
+
+ No accounts yet
+
+ Add your first financial account to start tracking
+
+
+
+
+ ) : (
+
+ {activeAccounts.map((account) => {
+ const isLiability = account.balance < 0 || account.type === 'CREDIT_CARD';
+ return (
+
+
+
+
+
+
+ {getAccountIcon(account.type)}
+
+ {account.name}
+
+
+ {account.institution && (
+
+
+ {account.institution}
+ {account.account_number_last4 && ` •••• ${account.account_number_last4}`}
+
+ )}
+
+
+
+ {account.type.replace('_', ' ')}
+
+
+
+
+
+
+
Balance
+
+ ${Math.abs(account.balance).toFixed(2)}
+
+ {isLiability && account.balance < 0 && (
+
+ (Owed)
+
+ )}
+
+
+
+
+
+
+
+
+
+
+ );
+ })}
+
+ )}
+
+
+ {/* Inactive Accounts */}
+ {inactiveAccounts.length > 0 && (
+
+
Inactive Accounts
+
+ {inactiveAccounts.map((account) => (
+
+
+
+ {getAccountIcon(account.type)}
+ {account.name}
+
+
+
+ Inactive
+
+
+
+
+
+ ))}
+
+
+ )}
+
+ {/* Create Modal */}
+ {showCreateModal && (
+
+ )}
+
+ );
+}