import { useState, useEffect } from "react"; import { Brain, Search, MessageSquare } from "lucide-react"; const steps = [ { icon: Search, title: "Search for a Book", description: "Enter the title of the book you want to explore.", }, { icon: Brain, title: "AI Analysis", description: "The AI analyzes the book and generates a mind map.", }, { icon: MessageSquare, title: "Explore Insights", description: "Ask questions and explore relationships, themes, and insights.", }, ]; export default function HowItWorks() { const [activeStep, setActiveStep] = useState(0); useEffect(() => { const interval = setInterval(() => { setActiveStep((prevStep) => (prevStep + 1) % steps.length); }, 3000); return () => clearInterval(interval); }, []); return (

How It Works

Discover the power of AI-driven book analysis

{steps.map((step, index) => (

{step.title}

{step.description}

))}
); }