"use client" import type React from "react" import { useState } from "react" import Image from "next/image" import Link from "next/link" import { usePathname } from "next/navigation" import { ChevronDown } from "lucide-react" export default function Header() { const pathname = usePathname() const [isProductsOpen, setIsProductsOpen] = useState(false) const handleInicioClick = (e: React.MouseEvent) => { if (pathname === "/") { e.preventDefault() window.scrollTo({ top: 0, behavior: "smooth" }) } } return ( ) }