+ + U + + {t("You")} + {exchange.question} + + + + LW + + {t("Ask Agent")} + {exchange.status === "pending" ? {t("Thinking...")} : null} + {exchange.status === "error" ? {exchange.error} : null} + {response?.answer_text ? {response.answer_text} : null} + {response?.next_action ? {t(response.next_action)} : null} + {response?.cited_posts && response.cited_posts.length > 0 ? ( + + {t("Cited posts")} + + {response.cited_posts.map((post) => ( + + onOpenPost(post.post_id)}> + {post.post_title} + {t("Open source")} + + {response.cited_post_evidence?.find((item) => item.post_id === post.post_id)?.facts.length ? ( + + {response.cited_post_evidence + .find((item) => item.post_id === post.post_id) + ?.facts.map((fact, index) => ( + + {chatEvidenceKindLabel(fact.kind)} + {fact.text} + + ))} + + ) : null} + + ))} - ) : null} - - ))} - - > - )} - - )} + + ) : null} + + +