import React, { useEffect, useRef } from 'react'; import { Loader, TrendingUp, Search, Eye } from 'lucide-react'; import { AnalysisState } from '../types'; interface StepProcessingProps { state: AnalysisState; } export const StepProcessing: React.FC = ({ state }) => { const percentage = Math.round((state.completed / state.total) * 100) || 0; const terminalRef = useRef(null); useEffect(() => { if (terminalRef.current) { terminalRef.current.scrollTop = terminalRef.current.scrollHeight; } }, [state.completed, state.currentCompany, state.terminalLogs]); return (

Running Market Audit

Analyzing digital traces based on your strategy...

Overall Progress {percentage}% ({state.completed}/{state.total})
Deep Tech Audit Session
{state.terminalLogs?.map((log, idx) => (
[{new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit', second: '2-digit'})}] ') ? 'text-indigo-400 font-bold' : log.includes('✓') ? 'text-emerald-400' : 'text-slate-300'}> {log}
))} {!state.terminalLogs?.length &&
Initializing agent...
}
); };