import { ArrowUpRight, ArrowDownRight, Target, ShieldAlert, TrendingUp, Activity } from 'lucide-react' import { motion } from 'framer-motion' export default function TradeSignalCard({ signal, currentPrice }) { if (!signal) return null const isLong = signal.action === 'LONG' const colorClass = isLong ? 'text-success' : 'text-danger' const bgClass = isLong ? 'bg-success/10 border-success/20' : 'bg-danger/10 border-danger/20' const iconBg = isLong ? 'bg-success/20' : 'bg-danger/20' return (
Active Signal {signal.isCustom && Custom Rule}

{signal.rule}

{isLong ? : }
Entry Point
${signal.entryPrice?.toFixed(2)}
Stop Loss
${signal.stopLoss?.toFixed(2)}
Target
${signal.takeProfit?.toFixed(2)}
Risk/Reward Ratio 1 : {signal.riskRewardRatio}
Confidence {signal.confidence}
) }