'use client'; import {useEffect, useState} from 'react'; import Link from 'next/link'; import Links from '@/app/Links'; export default function Navbar() { const [scrolled, setScrolled] = useState(false); useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 30); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); return ( ); }