import { codexFeedbackNotice, type CodexFeedbackSubmission, } from "@t3tools/client-runtime/state/threads"; import { Pressable, View } from "react-native"; import { AppText as Text } from "../../components/AppText"; import { SymbolView } from "../../components/AppSymbol"; import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic"; export function ComposerFeedback({ submission, onDismiss, }: { readonly submission: CodexFeedbackSubmission; readonly onDismiss: () => void; }) { const notice = codexFeedbackNotice(submission); if (!notice) return null; return ( {notice.title} {submission.status !== "uploading" ? ( ) : null} {notice.description ? ( {notice.description} ) : null} {submission.status === "sent" ? ( copyTextWithHaptic(submission.feedbackId, { target: "Codex feedback thread ID" }) } className="self-start py-1 active:opacity-60" > Copy ID ) : null} ); }