//info: Header component to display the header of the page including the logo and user information where thr user can logout import { useState } from "react"; import { Link } from "react-router-dom"; import backgroundImage from "../assets/1.jpg"; /** * Renders the header component. * @returns JSX.Element representing the header component. */ 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;