import { motion } from "motion/react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; import { cls } from "@/lib/utils"; type StepItem = { tag: string; title: string; subtitle: string; description: string; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); interface FeaturesDetailedStepsProps { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; steps: StepItem[]; } const FeaturesDetailedSteps = ({ tag, title, description, primaryButton, secondaryButton, steps, }: FeaturesDetailedStepsProps) => { return (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{steps.map((step, index) => { const stepNumber = String(index + 1).padStart(2, "0"); return (
{step.tag}

{step.title}

{step.subtitle}

{step.description}

{stepNumber}
); })}
); }; export default FeaturesDetailedSteps;