import { useState } from "react"; import { Link } from "react-router-dom"; function Header(): JSX.Element { const [isOpen, setIsOpen] = useState(false); const handleLogout = (): void => { localStorage.clear(); }; return (
TTIME Logo
{ setIsOpen(true); }} onMouseLeave={() => { setIsOpen(false); }} > {isOpen && (
)}
); } export default Header;