import React from 'react'; import { X, ArrowRight, ArrowLeft, MousePointer2, Link2, Play, Cpu } from 'lucide-react'; const steps = [ { title: "Welcome to NeuroArch", content: "A visual environment to design AI architectures using a node-based system. Build pipelines by connecting data sources, processing units, and outputs.", icon: , }, { title: "Add Components", content: "Drag components from the left sidebar onto the canvas. Start with a 'Data Source' and add an 'LLM Core' to process it.", icon: , }, { title: "Connect Nodes", content: "Select a node, then hold Shift and click another node to select multiple. Click 'Connect Selected' in the sidebar to link them.", icon: , }, { title: "Run Simulation", content: "Once your architecture is built, click 'Run Simulation' to test data flow and visualize latency across your pipeline.", icon: , } ]; export default function Wizard({ isOpen, onClose, onFinish }) { const [currentStep, setCurrentStep] = React.useState(0); // Reset step when wizard opens React.useEffect(() => { if (isOpen) setCurrentStep(0); }, [isOpen]); if (!isOpen) return null; const next = () => { if (currentStep < steps.length - 1) { setCurrentStep(currentStep + 1); } else { onFinish(); } }; const prev = () => { if (currentStep > 0) setCurrentStep(currentStep - 1); }; return (
{/* Decorative gradient blur behind icon */}
{/* Header */}

Setup Wizard

{/* Content */}
{steps[currentStep].icon}

{steps[currentStep].title}

{steps[currentStep].content}

{/* Progress Dots */}
{steps.map((_, i) => (
))}
{/* Footer */}
Step {currentStep + 1} of {steps.length}
); }