'use client' import { cn } from '@/lib/utils' import { DESIGN_PHASES, designPhases, type DesignPhase, type PhaseStatus } from '@/types/design-thinking' import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from '@/components/ui/tooltip' interface PhaseIndicatorCompactProps { currentPhase: DesignPhase phaseStatuses?: Record onPhaseClick?: (phase: DesignPhase) => void className?: string } export function PhaseIndicatorCompact({ currentPhase, phaseStatuses, onPhaseClick, className }: PhaseIndicatorCompactProps) { const currentIndex = DESIGN_PHASES.indexOf(currentPhase) const currentPhaseData = designPhases.find(p => p.id === currentPhase) return (
{/* Mini progress dots */}
{DESIGN_PHASES.map((phase, index) => { const status = phaseStatuses?.[phase] const isCurrent = index === currentIndex const isCompleted = status === 'completed' || index < currentIndex return (
{/* Current phase badge */}

{currentPhaseData?.label}

{currentPhaseData?.shortDescription}

) }