/** * Centred, tappable title region for the Chat tab's native Stack header. * Rendered as `headerTitle: () => ` so iOS positions * it where it expects the screen title, but the whole region is a Pressable * — tap opens the sessions + agent picker sheet. */ import { Pressable, View } from "react-native"; import type { Agent, ChatSession } from "@multica/core/types"; import { Text } from "@/components/ui/text"; import { ActorAvatar } from "@/components/ui/actor-avatar"; interface Props { currentSession: ChatSession | null; currentAgent: Agent | null; onPress: () => void; } export function ChatTitleButton({ currentSession, currentAgent, onPress, }: Props) { const agentName = currentAgent?.name ?? "Chat"; const subtitle = currentSession?.title || "New chat"; return ( {agentName} {subtitle} ); }