"use client"; import { AnimatePresence, motion } from "framer-motion"; import { CheckIcon } from "lucide-react"; import { useEffect } from "react"; import { AnimatedProcessingIcon } from "@/components/ui/animated-processing-icon"; import { cn } from "@/lib/utils"; export function AnimatedProviderSteps({ currentStep, setCurrentStep, }: { currentStep: number; setCurrentStep: (step: number) => void; }) { const steps = [ "Setting up your model provider", "Defining schema", "Configuring Langflow", "Ingesting sample data", ]; useEffect(() => { if (currentStep < steps.length - 1) { const interval = setInterval(() => { setCurrentStep(currentStep + 1); }, 1000); return () => clearInterval(interval); } }, [currentStep, setCurrentStep]); const isDone = currentStep >= steps.length; return (