import React from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Label } from '@/components/ui/label'; import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'; import { Badge } from '@/components/ui/badge'; import { TrendingUp, DollarSign, Shield, Zap } from 'lucide-react'; interface CopyStrategyProps { selectedStrategy: string; setSelectedStrategy: (strategy: string) => void; } const strategies = [ { id: 'proportional', name: 'Proportional Allocation', description: 'Copy trades proportionally based on your wallet size vs target wallet', icon: TrendingUp, badge: 'Recommended', badgeVariant: 'default' as const, example: 'Target trades $100, you have $1000 (10x), you trade $10' }, { id: 'fixed', name: 'Fixed Amount', description: 'Trade a fixed amount for every copied trade regardless of target size', icon: DollarSign, badge: 'Simple', badgeVariant: 'secondary' as const, example: 'Every trade executes with your preset amount (e.g., $50)' }, { id: 'risk-adjusted', name: 'Risk-Adjusted Copying', description: 'Adjust trade size based on target wallet performance and risk metrics', icon: Shield, badge: 'Advanced', badgeVariant: 'outline' as const, example: 'Higher performing wallets get larger allocations' }, { id: 'momentum', name: 'Momentum Based', description: 'Increase allocation size during winning streaks, decrease during losses', icon: Zap, badge: 'Dynamic', badgeVariant: 'outline' as const, example: 'Trade size adjusts based on recent performance trends' } ]; export const CopyStrategySelector: React.FC = ({ selectedStrategy, setSelectedStrategy }) => { return ( Copy Strategy {strategies.map((strategy, index) => { const IconComponent = strategy.icon; return (
setSelectedStrategy(strategy.id)} >
{strategy.badge}

{strategy.description}

Example: {strategy.example}
); })}
{!selectedStrategy && (

Please select a copy strategy to continue

)}
); };