+
+ {tabs.map(tab => (
+
+ ))}
+
+
+ {activeTab === 'overview' && (
+
+ {/* Performance Chart */}
+ {account.performanceHistory && account.performanceHistory.length > 0 && (
+
+
+ Rendimiento Histórico
+
+
+
+ )}
+
+ {/* Account Info */}
+
+
+
+ Información de la Cuenta
+
+
+
+
- Producto
+ - {account.product.name}
+
+
+
- Perfil de Riesgo
+ - {account.product.riskProfile}
+
+
+
- Inversión Inicial
+ -
+ ${account.initialInvestment.toLocaleString(undefined, { minimumFractionDigits: 2 })}
+
+
+
+
- Fecha de Apertura
+ -
+ {new Date(account.openedAt).toLocaleDateString()}
+
+
+
+
+
+
+
+ Últimas Transacciones
+
+ {account.recentTransactions && account.recentTransactions.length > 0 ? (
+
+ {account.recentTransactions.slice(0, 5).map(tx => (
+
+ ))}
+ {account.recentTransactions.length > 5 && (
+
+ )}
+
+ ) : (
+
+ No hay transacciones recientes
+
+ )}
+
+
+
+ )}
+
+ {activeTab === 'transactions' && (
+
+
+ Historial de Transacciones
+
+ {allTransactions.length > 0 ? (
+
+ {allTransactions.map(tx => (
+
+ ))}
+
+
+ ) : (
+
+ No hay transacciones registradas
+
+ )}
+
+ )}
+
+ {activeTab === 'distributions' && (
+
+
+ Historial de Distribuciones
+
+ {account.recentDistributions && account.recentDistributions.length > 0 ? (
+
+ {account.recentDistributions.map(dist => (
+
+ ))}
+
+ ) : (
+
+ No hay distribuciones registradas
+
+ )}
+
+ )}
+
+ {activeTab === 'deposit' && (
+
+
+ Depositar Fondos
+
+ setActiveTab('overview')}
+ />
+
+ )}
+
+ {activeTab === 'withdraw' && (
+
+
+ Solicitar Retiro
+
+ setActiveTab('overview')}
+ />
+
+ )}
+
+
+ {/* Quick Actions */}
+ {activeTab === 'overview' && account.status === 'active' && (
+