import type { ReactNode } from "react"; interface FeatureCardProps { icon: ReactNode; title: string; description: string; onClick?: () => void; className?: string; } export function FeatureCard({ icon, title, description, onClick, className = "", }: FeatureCardProps) { const Component = onClick ? "button" : "div"; return ( { (e.currentTarget as HTMLElement).style.borderColor = "rgba(0,255,255,0.4)"; (e.currentTarget as HTMLElement).style.boxShadow = "0 0 20px rgba(0,255,255,0.1)"; }} onMouseLeave={e => { (e.currentTarget as HTMLElement).style.borderColor = "rgba(0,255,255,0.15)"; (e.currentTarget as HTMLElement).style.boxShadow = "none"; }} >
{icon}

{title}

{description}

); }