import React, { useState, useEffect } from "react"; import { Button } from "./Button"; import "./Navbar.css"; import { Link } from "react-router-dom"; import logo from "../../../assets/logo_icon.png"; function Navbar() { const [click, setClick] = useState(false); const [button, setButton] = useState(true); const handleClick = () => setClick(!click); const closeMobileMenu = () => setClick(false); const showButton = () => { if (window.innerWidth <= 960) { setButton(false); } else { setButton(true); } }; useEffect(() => { showButton(); }, []); window.addEventListener("resize", showButton); return ( <> ); } export default Navbar;