import React, { useState } from 'react'; import { Link } from 'react-router-dom'; function Header({ username }: { username: string }) { const [isOpen, setIsOpen] = useState(false); const handleLogout = () => { // Add any logout logic here }; return (
TTIME Logo
setIsOpen(true)} onMouseLeave={() => setIsOpen(false)} > {isOpen && (
)}
); } export default Header;