import { cn } from "@/lib/utils"; import { AnimatePresence, motion } from "motion/react"; import { useState } from "react"; export const HoverEffect = ({ items, className, }: { items: { title: string; description: string; link: string; }[]; 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, }: { className?: string; children: React.ReactNode; }) => { 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}

); };