import React, { useState } from "react"; import { KeyboardAvoidingView, Platform, StyleSheet, Text, View, } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { radius, text } from "../theme/tokens"; import { useTheme } from "../theme/useTheme"; import { Button } from "../components/Button"; import { Chip } from "../components/Chip"; import { PageHeader } from "../components/PageHeader"; import { TextField } from "../components/TextField"; import { Mono, SectionLabel } from "../components/primitives"; import { useAppState } from "../state/AppState"; import { quickReplyLabels } from "../data/mock"; const QUESTION = "Migrations pass on the new sqlite store. Should I drop the legacy JSON store entirely, or keep it as a read-only fallback for one release?"; export function AnswerScreen() { const { colors } = useTheme(); const insets = useSafeAreaInsets(); const { go, quickPick, setQuickPick, sendResume } = useAppState(); const [reply, setReply] = useState(""); return ( go("detail")} agentId="agt-7a1d" badge={{ tone: "warning", label: "Waiting" }} /> Agent needs input Question · 2m ago {QUESTION} Quick replies {quickReplyLabels.map((label, i) => ( setQuickPick(i)} /> ))} ); } const styles = StyleSheet.create({ page: { flex: 1 }, flex: { flex: 1 }, content: { flex: 1, paddingTop: 8, paddingHorizontal: 20 }, questionCard: { borderWidth: 1, borderRadius: radius.lg, padding: 16, marginBottom: 20, }, questionText: { fontSize: 13, lineHeight: 22 }, chips: { flexDirection: "row", flexWrap: "wrap", gap: 8, marginBottom: 20, }, footer: { marginTop: "auto", gap: 12 }, });