'use client';
interface VisualizerProps {
currentStep: number;
isPlaying: boolean;
}
export function Visualizer({ currentStep, isPlaying }: VisualizerProps) {
return (
{Array.from({ length: 16 }, (_, i) => {
const isActive = isPlaying && currentStep === i;
const isBeat = i % 4 === 0;
const isOffbeat = i % 2 === 1;
// Vary heights for visual interest
const baseHeight = isBeat ? 'h-12' : isOffbeat ? 'h-6' : 'h-8';
const activeHeight = 'h-14';
return (
);
})}
);
}