import {motion} from 'motion/react'; import {useEffect, useState} from 'react'; import {Brain, Cpu, TrendingUp, Zap} from 'lucide-react'; const analysisSteps = [ { dept: '组织架构', message: '发现重复劳动节点...', icon: '🎨' }, { dept: 'AI替代方案', message: 'AI替代率 85%...', icon: '✍️' }, { dept: 'AI优化方案', message: '智能接入可节省 70%...', icon: '💬' }, { dept: 'AI优化空间', message: '数据分析优化空间 60%...', icon: '📊' }, { dept: 'AI部署方案', message: '自动化流程提升 75%...', icon: '⚙️' }, ]; export function Screen3Analysis() { const [currentStep, setCurrentStep] = useState(0); const [nodes, setNodes] = useState>([]); useEffect(() => { // Generate random nodes const newNodes = Array.from({ length: 15 }, (_, i) => ({ x: Math.random() * 100, y: Math.random() * 100, id: i, })); setNodes(newNodes); }, []); useEffect(() => { // Progress through analysis steps const timer = setInterval(() => { setCurrentStep((prev) => { if (prev < analysisSteps.length - 1) { return prev + 1; } else { clearInterval(timer); return prev; } }); }, 800); return () => clearInterval(timer); }, []); return (
{/* Radar scanning effect */}
{/* Rotating radar beam */}
{/* Node visualization */}
{nodes.map((node) => ( {/* Pulse effect */} ))}
{/* Central AI brain */}
{/* Orbiting icons */} {[Cpu, Zap, TrendingUp].map((Icon, index) => (
))}
{/* Analysis progress */}
{analysisSteps.map((step, index) => ( {step.icon}
正在分析{step.dept}
{step.message}
{index === currentStep && ( )} {index < currentStep && (
)}
))}
{/* Status text */}

AI深度分析中,请稍候...

{/* Progress bar */}
); }