'use client'; import { useState } from 'react'; import Link from 'next/link'; import { Target, ArrowRight, Zap, TrendingUp, CreditCard, Plus, FileText, ChevronRight, Wallet, Clock, Percent } from 'lucide-react'; import { investors } from '@/data/mockData'; import toast from 'react-hot-toast'; export default function MyInvestmentsPage() { const investor = investors[0]; // mock logged-in investor return (

My Investments

Manage your active portfolios and track your earnings.

New Investment
{/* Portfolio Summary */}

Portfolio Overview

Total Invested

৳{investor.totalInvested.toLocaleString()}

Total Returns

৳{investor.totalEarnings.toLocaleString()}

Active Bikes

{investor.activeBikes} Units

{/* My Active Investments List */}

Active Investment Plans

{investor.investments?.length || 0} Total
{investor.investments && investor.investments.length > 0 ? investor.investments.map((inv) => ( )) : ( )}
Investment Plan Capital Invested Actual Returns Status Action

{inv.planName}

{inv.planType} Started: {inv.startDate}

৳{inv.totalInvestment.toLocaleString()}

৳{inv.actualEarnings.toLocaleString()}

+{inv.expectedRoi}% ROI

{inv.status}
View Details

No active investments found.

Start your first investment
); }