import { useAutoAnimate } from "@formkit/auto-animate/react"; import Link from "next/link"; type DefaultStep = { title: string; }; function Stepper(props: { href: string; step: number; steps: T[]; disableSteps?: boolean; stepLabel?: (currentStep: number, totalSteps: number) => string; }) { const { href, steps, stepLabel = (currentStep, totalSteps) => `Step ${currentStep} of ${totalSteps}`, } = props; const [stepperRef] = useAutoAnimate(); return ( <> {steps.length > 1 && ( )} ); } export default Stepper;