import ImageOrVideo from "@/components/ui/ImageOrVideo"; import TextAnimation from "@/components/ui/TextAnimation"; import ScrollReveal from "@/components/ui/ScrollReveal"; import Button from "@/components/ui/Button"; import { cls } from "@/lib/utils"; type FeatureItem = { title: string; description: string; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); interface FeaturesBentoGridProps { tag: string; title: string; description: string; features: [FeatureItem, FeatureItem, FeatureItem, FeatureItem]; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; } const FeaturesBentoGrid = ({ tag, title, description, features, primaryButton, secondaryButton, }: FeaturesBentoGridProps) => { const colSpans = ["md:col-span-5", "md:col-span-7", "md:col-span-7", "md:col-span-5"]; return (

{tag}

{(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{features.map((feature, index) => (

{feature.title}

{feature.description}

))}
); }; export default FeaturesBentoGrid;