import { StyleSheet, View } from "react-native"; import { useTheme } from "../../theme/ThemeProvider"; import { space } from "../../theme/tokens"; import { Icon } from "../ui/Icon"; import { StatusDot } from "../ui/StatusDot"; import { Text } from "../ui/Text"; import { Touchable } from "../ui/Touchable"; export function ChatHeader({ status, onHistory, onSettings, onStop, stopping = false, }: { status?: { label: string; tone: "run" | "wait" | "danger" }; onHistory: () => void; onSettings: () => void; onStop?: () => void; stopping?: boolean; }) { const { colors } = useTheme(); return ( CO {status && status.label !== "Connected" ? ( {status.label} ) : null} {onStop ? ( ) : ( )} ); } const styles = StyleSheet.create({ header: { minHeight: 64, paddingHorizontal: space.md, paddingVertical: space.sm, flexDirection: "row", alignItems: "center", gap: space.sm, }, identity: { flex: 1, alignItems: "center", gap: 4 }, wordmark: { fontFamily: "Around_400Regular", fontSize: 24, lineHeight: 30, letterSpacing: 1, }, status: { flexDirection: "row", alignItems: "center", gap: 6 }, action: { width: 44, height: 44, alignItems: "center", borderRadius: 22 }, stop: { width: 12, height: 12, borderRadius: 3 }, });