import React from "react"; import { cn } from "../../lib/utils"; export interface CardProps { title: string; description: string; imageSrc: string; buttonText: string; buttonLink?: string; imageAlt?: string; accentColor?: string; onClick?: () => void; } interface InteractiveCardGalleryProps { cards: CardProps[]; className?: string; cardHeight?: string; columns?: 1 | 2 | 3 | 4; hoverScale?: number; transitionDuration?: number; } const CardItem = ({ title, description, imageSrc, buttonText, buttonLink, imageAlt, accentColor = "yellow", onClick, }: CardProps) => { const handleClick = (e: React.MouseEvent) => { if (buttonLink) { if (!onClick) return; e.preventDefault(); } onClick?.(); }; return (
{description}