import { motion } from "motion/react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; type FeatureItem = { title: string; description: string; tags: string[]; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); interface FeaturesDetailedCardsProps { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; items: FeatureItem[]; } const FeaturesDetailedCards = ({ tag, title, description, primaryButton, secondaryButton, items, }: FeaturesDetailedCardsProps) => { return (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{items.map((item) => (

{item.title}

{item.tags.map((itemTag) => ( {itemTag} ))}

{item.description}

))}
); }; export default FeaturesDetailedCards;