import { Badge } from "@/components/ui/badge"; import { ArrowRight, Clock, Users } from "lucide-react"; import { cn } from "@/lib/utils"; interface InteractiveCardProps { title: string; description: string; tags: string[]; difficulty?: "Beginner" | "Intermediate" | "Advanced"; duration?: string; participants?: string; imageUrl?: string; onClick?: () => void; className?: string; } const InteractiveCard = ({ title, description, tags, difficulty, duration, participants, imageUrl, onClick, className }: InteractiveCardProps) => { const difficultyColors = { Beginner: "bg-green-100 text-green-800", Intermediate: "bg-yellow-100 text-yellow-800", Advanced: "bg-red-100 text-red-800" }; return (
{imageUrl && (
{title}
)}

{title}

{description}

{duration && (
{duration}
)} {participants && (
{participants}
)}
{difficulty && ( {difficulty} )} {tags.slice(0, 3).map((tag) => ( {tag} ))} {tags.length > 3 && ( +{tags.length - 3} )}
); }; export default InteractiveCard;