'use client'; import { useSlideshow } from '@/hooks/useSlideshow'; import { AnimatePresence } from 'framer-motion'; import Link from 'next/link'; import { Slide } from './Slide'; import { SlideNavigation } from './SlideNavigation'; import { SlideProgress } from './SlideProgress'; import { AgentCodeSlide } from './agent-example-slides/AgentCodeSlide'; import { AgentExampleNextStepsSlide } from './agent-example-slides/AgentExampleNextStepsSlide'; import { AgentExampleWelcomeSlide } from './agent-example-slides/AgentExampleWelcomeSlide'; import { ExecutionFlowSlide } from './agent-example-slides/ExecutionFlowSlide'; import { SetupCodeSlide } from './agent-example-slides/SetupCodeSlide'; import { TheGoalSlide } from './agent-example-slides/TheGoalSlide'; const SLIDES = [ { id: 'welcome', Component: AgentExampleWelcomeSlide }, { id: 'the-goal', Component: TheGoalSlide }, { id: 'setup', Component: SetupCodeSlide }, { id: 'agent-code', Component: AgentCodeSlide }, { id: 'execution-flow', Component: ExecutionFlowSlide }, { id: 'next-steps', Component: AgentExampleNextStepsSlide }, ]; export function AgentExampleSlideshow(): React.ReactElement { const { currentSlide, totalSlides, next, prev, goTo, direction, isFirst, isLast } = useSlideshow({ totalSlides: SLIDES.length, }); return (
Tutorials {SLIDES.map((slide, index) => ( ))}
Use arrow keys or click to navigate
); }