(function () { "use strict"; var _v = window.IS7v2; const Header = function Header() { var { Icon, Logo, wa } = _v; var [scrolled, setScrolled] = React.useState(false); var [open, setOpen] = React.useState(false); var [theme, setTheme] = React.useState(function () { return (typeof localStorage !== "undefined" && localStorage.getItem("is7-theme")) || "dark"; }); React.useEffect(function () { var fn = function () { setScrolled(window.scrollY > 16); }; fn(); window.addEventListener("scroll", fn, { passive: true }); return function () { window.removeEventListener("scroll", fn); }; }, []); React.useEffect(function () { document.documentElement.setAttribute("data-theme", theme); if (typeof localStorage !== "undefined") localStorage.setItem("is7-theme", theme); }, [theme]); var links = [ { href: "#servicos", label: "Serviços" }, { href: "#portfolio", label: "Portfólio" }, { href: "#sobre", label: "Sobre" }, { href: "#faq", label: "FAQ" }, { href: "#contato", label: "Contato" }, ]; var closeMenu = function () { setOpen(false); }; return (
Falar com a IS7
{open && (
{links.map(function (l) { return ( {l.label} ); })} Falar com a IS7
)}
); }; Object.assign(window.IS7v2, { Header }); })();