import type React from 'react'; import { Menu, PanelLeftClose, PanelLeftOpen } from 'lucide-react'; import { useLocation } from 'react-router-dom'; import { ThemeToggle } from '../theme/ThemeToggle'; type ShellHeaderProps = { collapsed: boolean; onToggleSidebar: () => void; onOpenMobileNav: () => void; }; const TITLES: Record = { '/': { title: '首页', description: '股票分析与历史报告工作台' }, '/chat': { title: '问股', description: '多轮策略问答与历史会话管理' }, '/backtest': { title: '回测', description: '回测任务与结果浏览' }, '/settings': { title: '设置', description: '系统配置、模型与认证管理' }, }; export const ShellHeader: React.FC = ({ collapsed, onToggleSidebar, onOpenMobileNav, }) => { const location = useLocation(); const current = TITLES[location.pathname] ?? { title: 'Daily Stock Analysis', description: 'Web workspace' }; return (

{current.title}

{current.description}

); };