import { investors, bikes, transactions } from '@/data/mockData'; import { Wallet, TrendingUp, Bike, Target, DollarSign, FileText, Phone, BarChart3, Clock, ArrowRight, ShieldCheck, Zap, AlertCircle } from 'lucide-react'; import Link from 'next/link'; import TransactionList from '@/components/TransactionList'; import InvestorNotification from '@/components/InvestorNotification'; export default function InvestorDashboardPage() { const investor = investors[0]; const investorBikes = bikes.filter(b => b.investorId === investor?.id); const recentTransactions = transactions.filter(t => t.investorId === investor.id).slice(0, 5); const availableBalance = investor.totalEarnings - investor.totalWithdrawn - investor.withdrawalPending; return (
Here's what's happening with your investments today.
Total Invested
à§³{(investor.totalInvested / 1000).toFixed(0)}k
Total Earnings
à§³{(investor.totalEarnings / 1000).toFixed(1)}k
Active Bikes
{investor.activeBikes}
Avg. ROI
{investor.roi}%
{bike.plateNumber}
à§³{bike.currentRent || 0}
Daily Rent
No bikes assigned yet
Once you make an investment, assigned bikes will appear here.
Available to Withdraw
à§³{availableBalance.toLocaleString()}
Update KYC
Manage documents
Earnings & P&L
View detailed reports