import { X, CheckCircle, XCircle, Calculator } from 'lucide-react'; import { createPortal } from 'react-dom'; import type { ReturnBreakdown } from '../types'; interface ReturnExplainModalProps { isOpen: boolean; onClose: () => void; breakdown: ReturnBreakdown | null; date: string; } export default function ReturnExplainModal({ isOpen, onClose, breakdown, date }: ReturnExplainModalProps) { if (!isOpen || !breakdown) return null; const formattedDate = new Date(date).toLocaleDateString('en-IN', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', }); return createPortal(
Weighted Average Return
1. Correct Predictions → Contribute positively
2. Incorrect Predictions → Contribute negatively
3. Weighted Average
Note: This weighted return represents the theoretical gain/loss if you followed all predictions for the day. Actual results may vary based on execution timing, transaction costs, and market conditions.