import React from 'react'; import { ArrowLeft, MessageCircle } from 'lucide-react'; interface PageHeaderProps { title?: string; subtitle?: string; onBack: () => void; onChat: () => void; showCharacter?: boolean; characterImageUrl?: string; } export const PageHeader: React.FC = ({ title, subtitle, onBack, onChat, showCharacter = true, characterImageUrl }) => { return (
{/* 返回按钮 */} {/* 中间标题区域 */}
{showCharacter && (
{characterImageUrl ? ( AI Companion ) : (
🐱
)} {/* 在线状态指示器 */}
)} {title && (

{title}

)} {subtitle && (

{subtitle}

)}
{/* 对话按钮 */}
); };