/* global React, LogoImg, WAIcon, waLink */ const { useState: useStateN, useEffect: useEffectN } = React; const HOME = "Rancho%20La%20Vega.html"; const NAV = [ ["Inicio", HOME], ["Rancho La Vega", "rancho.html"], ["Ejemplares", "ejemplares.html"], ["Lista de precios", "precios.html"], ["Líneas disponibles", "lineas.html"], ["Proceso de compra", "proceso.html"], ["Mapa de envíos", "envios.html"], ["Dinámicas", "dinamicas.html"], ["Crianza y cuidado", "crianza.html"], ["Legalidad", "legalidad.html"], ["Blog", "blog.html"], ["Contacto", "contacto.html"], ]; const PRIMARY = ["ejemplares.html", "precios.html", "lineas.html", "envios.html", "contacto.html"]; function currentFile() { const p = decodeURIComponent(location.pathname.split("/").pop() || ""); return p || "Rancho La Vega.html"; } function Header() { const [menu, setMenu] = useStateN(false); const [scrolled, setScrolled] = useStateN(false); const cur = currentFile(); const isHome = cur === "Rancho La Vega.html" || cur === ""; useEffectN(() => { const onScroll = () => setScrolled(window.scrollY > 40); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); useEffectN(() => { document.body.style.overflow = menu ? "hidden" : ""; }, [menu]); const active = (href) => decodeURIComponent(href) === cur || (isHome && href === HOME); return (
RANCHO LA VEGA Tempoal, Veracruz
WhatsApp

Rancho La Vega — Menú

Consultar por WhatsApp
); } Object.assign(window, { Header, NAV });