'use client'; import { motion } from 'framer-motion'; import { ReactNode } from 'react'; interface ToolCardProps { title: string; description: string; icon: ReactNode; url: string; gradient: string; accentColor: string; index: number; badges?: string[]; } export default function ToolCard({ title, description, icon, url, gradient, accentColor, index, badges }: ToolCardProps) { return (
{/* Gradient overlay on hover */}
{/* Glow effect */}
{/* Icon */}
{icon}
{/* Title */}

{ e.currentTarget.style.color = accentColor; }} onMouseLeave={(e) => { e.currentTarget.style.color = 'white'; }} > {title}

{/* Badges */} {badges && badges.length > 0 && (
{badges.map((badge) => ( {badge} ))}
)} {/* Description */}

{description}

{/* Arrow icon */}
); }