"use client"; import { Menu, ChevronLeft } from "lucide-react"; import { cn } from "@/lib/utils"; interface MobileHeaderProps { title?: string; onMenuOpen: () => void; onBack?: () => void; right?: React.ReactNode; className?: string; } /** * Compact top bar for mobile: hamburger (or back) on the left, title in centre, optional actions on the right. * Tap targets are at least 44×44 px per WCAG / Apple HIG guidelines. */ export function MobileHeader({ title = "Chat", onMenuOpen, onBack, right, className, }: MobileHeaderProps) { return (
{/* Left action — back or hamburger */} {onBack ? ( ) : ( )} {/* Title */}

{title}

{/* Right actions */} {right &&
{right}
}
); }