"use client"; import { motion, useScroll, useTransform } from "framer-motion"; interface GridBackgroundProps { variant?: "dark" | "light"; } export default function GridBackground({ variant = "light", }: GridBackgroundProps) { const { scrollY } = useScroll(); const opacity = useTransform(scrollY, [0, 400, 800], [1, 0.4, 0.2]); const y = useTransform(scrollY, [0, 1000], [0, 100]); return ( ); }