import { cn } from "@/lib/utils"; import { AnimatePresence, motion } from "framer-motion"; import Link from "next/link"; import { useState } from "react"; import { IconType } from 'react-icons'; export const HoverEffect = ({ items, className, }: { items: { title: string; description: string; link: string; icon: IconType; // adding icon type }[]; className?: string; }) => { let [hoveredIndex, setHoveredIndex] = useState(null); return (
{items.map((item, idx) => ( setHoveredIndex(idx)} onMouseLeave={() => setHoveredIndex(null)} > {hoveredIndex === idx && ( )} {item.title} {item.description} ))}
); }; export const Card = ({ className, children, icon }: { className?: string; children: React.ReactNode; icon: IconType; }) => { const Icon = icon; return (
{children}
{}
); }; export const CardTitle = ({ className, children, }: { className?: string; children: React.ReactNode; }) => { return (

{children}

); }; export const CardDescription = ({ className, children, }: { className?: string; children: React.ReactNode; }) => { return (

{children}

); };