import React from 'react'; import { useTheme } from '../../hooks/useTheme'; import { Bell, Search, User, Settings } from 'lucide-react'; export const Header: React.FC = () => { const { theme } = useTheme(); return (
{/* 左侧:搜索框 */}
{ e.target.style.borderColor = theme.colors.primary[500]; }} onBlur={(e) => { e.target.style.borderColor = theme.colors.border.default; }} />
{/* 右侧:用户操作 */}
{/* 通知 */} {/* 设置 */} {/* 用户头像 */}
{ e.currentTarget.style.backgroundColor = theme.colors.neutral[100]; }} onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent'; }} >
管理员 admin@example.com
); };