'use client'; import type { WorkflowStep } from '@/lib/types/http'; import { cn } from '@kandev/ui/lib/utils'; import { Tooltip, TooltipContent, TooltipTrigger, } from '@kandev/ui/tooltip'; type SessionWorkflowProgressProps = { steps: WorkflowStep[]; currentStepId: string | null; className?: string; }; export function SessionWorkflowProgress({ steps, currentStepId, className, }: SessionWorkflowProgressProps) { const currentStepIndex = currentStepId ? steps.findIndex((step) => step.id === currentStepId) : -1; return (
{steps.map((step, i) => (
currentStepIndex && 'bg-gray-300' )} /> {step.name} ))}
); }