import { motion } from "motion/react"; type FeatureItem = { title: string; description: string; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); interface FeaturesMediaCardsProps { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; items: FeatureItem[]; } const FeaturesMediaCards = ({ tag, title, description, primaryButton, secondaryButton, items, }: FeaturesMediaCardsProps) => { return (
{tag} {title} {description} {(primaryButton || secondaryButton) && (
{primaryButton && ( {primaryButton.text} )} {secondaryButton && ( {secondaryButton.text} )}
)}
{items.map((item, index) => (
{item.videoSrc ? (

{item.title}

{item.description}

))}
); }; export default FeaturesMediaCards;