'use client' import Image from 'next/image'; import React, { useState } from 'react'; import { motion, useMotionValue, useTransform } from 'framer-motion'; interface Tech { name: string; url: string; color: string; } interface TechStackProps { techStack: Tech[]; } const TechStack: React.FC = ({ techStack }) => { const [isHovered, setIsHovered] = useState(false); const x = useMotionValue(0); const y = useMotionValue(0); const lightSize = 80; const lightX = useTransform(x, (value) => value - lightSize / 2); const lightY = useTransform(y, (value) => value - lightSize / 2); const handleMouseMove = (event: React.MouseEvent) => { const rect = event.currentTarget.getBoundingClientRect(); x.set(event.clientX - rect.left); y.set(event.clientY - rect.top); }; return (
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} > Background
{isHovered && ( )}

Techstack

{techStack.map((tech, index) => (
{tech.name}
))}
); }; export default TechStack;