/* global React, ReactDOM, COPY */ const { useState, useEffect } = React; const INNER_LINKS = { es: [ { href: "/", idx: "01", label: "Inicio" }, { href: "/nosotros.html", idx: "02", label: "Nosotros" }, { href: "/soluciones.html", idx: "03", label: "Soluciones" }, { href: "/desarrollos.html", idx: "04", label: "Desarrollos" }, { href: "/contacto.html", idx: "05", label: "Contacto" }, ], en: [ { href: "/", idx: "01", label: "Home" }, { href: "/nosotros.html", idx: "02", label: "About" }, { href: "/soluciones.html", idx: "03", label: "Solutions" }, { href: "/desarrollos.html", idx: "04", label: "Lab" }, { href: "/contacto.html", idx: "05", label: "Contact" }, ], }; function DesarrollosHero({ p }) { return (
{p.tag}

{p.title1}
{p.title2}

{p.desc}

); } function Projects({ p }) { return (
{p.projects.map((proj, i) => (
{proj.url}/
{proj.url}
{proj.status}

{proj.desc}

{proj.tags.map((tag, j) => {tag})}
{proj.live ? p.visitLabel : p.devLabel}
))}
{p.idea.tag}
{p.idea.title}

{p.idea.body}

{p.idea.btn}
); } function DesarrollosCta({ p }) { return (
{p.tag}

{p.pre}
{p.accent}

{p.body}

{p.btn} {p.btn2}
); } function DesarrollosApp() { const [lang, setLang] = useState("es"); const [direction, setDirection] = useState("a"); useEffect(() => { document.documentElement.setAttribute("data-lang", lang); }, [lang]); useEffect(() => { document.documentElement.setAttribute("data-direction", direction); }, [direction]); useEffect(() => { if (typeof initChat === "function") initChat(); }, []); useReveal(); const t = COPY[lang]; const p = t.desarrollos; return ( <>