import React, { useState } from "react"; import { ShieldAlert, Upload, MessageSquare } from "lucide-react"; import { Card } from "../ui/Card"; import { Button } from "../ui/Button"; import { Textarea, Dropdown } from "../ui/Input"; import { toast } from "sonner"; export function ScamInputForm({ onAnalyze, loading }) { const [message, setMessage] = useState(""); const [source, setSource] = useState("whatsapp"); const [stockSymbol, setStockSymbol] = useState(""); const [error, setError] = useState(""); const sampleMessages = { whatsapp: "🚨 URGENT BUY CALL! RELIANCE 100% Guaranteed 5000 Target by Friday!! Heavy Operator Buying. Join VIP Group for 10x Returns 🚀🚀", telegram: "⚡ INSIDER STOCK ALERT ⚡ TATAMOTORS Upper Circuit Expected Tomorrow! Buy Immediately before news breaks. NO LOSS GUARANTEE! 📈", sms: "FREE TIP: Buy INFY at market price. Target 2200. Multibagger stock recommendation from SEBI reg advisor. Call 9876543210 immediately.", email: "Exclusive Private Placement Opportunity: 300% Return in 30 Days guaranteed. Click http://suspicious-trade-fund.biz to invest now.", }; const handlePastePreset = (key) => { setMessage(sampleMessages[key]); setSource(key); setError(""); toast.success(`Loaded sample ${key.toUpperCase()} message.`); }; const handleTextChange = (e) => { setMessage(e.target.value); if (e.target.value.trim().length >= 5) { setError(""); } }; const handleSubmit = (e) => { e.preventDefault(); if (!message || message.trim().length < 5) { setError("Please enter at least 5 characters to analyze."); toast.error("Message must be at least 5 characters long."); return; } onAnalyze({ message: message.trim(), source, stock_symbol: stockSymbol.trim() || undefined, }); }; const handleScreenshotDrop = (e) => { const file = e.target.files?.[0]; if (file) { toast.success(`OCR Scan complete for screenshot "${file.name}". Extracting text...`); setTimeout(() => { setMessage("🔥 URGENT STOCK TIP: BUY RELIANCE TODAY TARGET 3200 GUARANTEED RETURN BY OPERATOR GROUP!!"); toast.success("Text extracted from image successfully!"); }, 500); } }; return (

SCAM & FRAUD INVESTIGATION INPUT

Paste any suspicious stock tip, WhatsApp message, Telegram signal, SMS, or Email.

{/* Preset Sample Buttons */}
PASTE SAMPLES:
{/* Textarea Input */}