import { Link, NavLink } from "react-router-dom"; import { memo } from "react"; import { SearchBar } from "./SearchBar"; import Navigation from "./navigation"; import { useAuth } from "@web/src/providers/auth-provider"; import { UserOutlined } from "@ant-design/icons"; import { UserMenu } from "../element/usermenu"; import SineWavesCanvas from "../../animation/sine-wave"; interface HeaderProps { onSearch?: (query: string) => void; } export const Header = memo(function Header({ onSearch }: HeaderProps) { const { isAuthenticated } = useAuth(); return (
领导机关信箱
{!isAuthenticated ? ( 登录 ) : ( )}
); });