import { CheckIcon } from "lucide-react" import { cn } from "@/lib/utils" export interface StepItem { readonly label: string /** Подпись под шагом: выбранный слот, пациент… */ readonly hint?: string } /** Шаги мастера: пройденные — с галочкой и кликабельны, будущие — недоступны. */ export function Stepper({ steps, current, onStepClick, className, }: { steps: readonly StepItem[] current: number onStepClick?: (index: number) => void className?: string }) { return (
    {steps.map((step, i) => { const done = i < current const active = i === current const clickable = Boolean(onStepClick) && done return (
  1. {i > 0 && }
  2. ) })}
) }