import { motion } from "motion/react"; import { BadgeCheck } from "lucide-react"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; import GridOrCarousel from "@/components/ui/GridOrCarousel"; import Button from "@/components/ui/Button"; type FeatureItem = { title: string; description: string; avatarSrc: string; buttonText: string; buttonHref?: string; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); const FeaturesProfileCards = ({ tag, title, description, primaryButton, secondaryButton, items, }: { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; items: FeatureItem[]; }) => (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{items.map((item) => (
); export default FeaturesProfileCards;