import { motion } from "motion/react"; 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} {title} {description} {(primaryButton || secondaryButton) && (
{primaryButton && ( {primaryButton.text} )} {secondaryButton && ( {secondaryButton.text} )}
)}
{steps.map((step, index) => { const stepNumber = String(index + 1).padStart(2, "0"); const tilt = index % 2 === 0 ? "rotate-3" : "-rotate-3"; return (
{step.tag}

{step.title}

{step.subtitle}

{step.description}

{stepNumber}
{step.videoSrc ? (
); })}
); }; export default FeaturesDetailedSteps;