import React from 'react'; import { AnimatePresence, motion } from 'framer-motion'; import type { GuidedTourSnapshot } from '../../animations/guidedTour'; export interface GuidedTourOverlayProps { snapshot: GuidedTourSnapshot; onPlay: () => void; onPause: () => void; onRestart: (autoPlay?: boolean) => void; onNext: () => void; onPrevious: () => void; } export function GuidedTourOverlay({ snapshot, onPlay, onPause, onRestart, onNext, onPrevious, }: GuidedTourOverlayProps): JSX.Element { const step = snapshot.currentStep; const isPlaying = snapshot.status === 'playing'; return (

Guided tour

Step {snapshot.currentStepIndex + 1} {snapshot.status === 'complete' ? ' ยท complete' : ''}

{step ? ( <>

{step.title}

{step.body}

{step.partIds.length > 0 && (
{step.partIds.map((partId) => ( {partId} ))}
)} ) : (

No guided tour is available for this machine.

)}
); }