// REQ-USR-003 / REQ-USR-004: 顶栏(Logo + 全部导航按钮 + 标签条 + 右侧搜索/通知/当前用户/更多)。 import { MenuOutlined, SearchOutlined, BellOutlined, HomeOutlined } from '@ant-design/icons'; import type { AuthUser } from '../../api/types'; import type { TabItem } from './useTabStack'; import CurrentUserMenu from './CurrentUserMenu'; import styles from './AppLayout.module.css'; interface TopBarProps { user: AuthUser | null; tabs: TabItem[]; activeKey: string; navOverlayOpen: boolean; onToggleNav: () => void; onSelectTab: (key: string) => void; onCloseTab: (key: string) => void; onLogout: () => void; onLogoHome: () => void; } export default function TopBar({ user, tabs, activeKey, navOverlayOpen, onToggleNav, onSelectTab, onCloseTab, onLogout, onLogoHome, }: TopBarProps) { return (