blob: 69862060d1dc7d16e70acb0a14c759ef4eaf9440 [file] [log] [blame]
Krishya1df05892025-04-05 21:16:30 +08001// import React from 'react';
2// import { Link } from 'wouter'; // Use wouter's Link component
Krishya75e43c02025-04-05 21:16:30 +08003
Krishya1df05892025-04-05 21:16:30 +08004// const Navbar = () => {
5// const { user, logout } = useUser();
Krishya75e43c02025-04-05 21:16:30 +08006
Krishya1df05892025-04-05 21:16:30 +08007// return (
8// <nav className="navbar">
9// <div className="logo">EchoTorrent</div>
10// <div className="nav-links">
11// {user ? (
12// <>
13// <Link to="/">主页</Link>
14// <Link to="/profile">个人中心</Link>
15// <Link to="/forum">论坛</Link>
16// <button onClick={logout}>退出登录</button>
17// </>
18// ) : (
19// <>
20// <Link to="/auth">登录/注册</Link>
21// <Link to="/forum">论坛</Link>
22// </>
23// )}
24// </div>
25// </nav>
26// );
27// };
Krishya75e43c02025-04-05 21:16:30 +080028
Krishya1df05892025-04-05 21:16:30 +080029// export default Navbar;