{q.options.map((opt, i) => (
-
)}
+ {onDecline ? (
+
+ ) : null}
)
diff --git a/src/renderer/src/components/native-chat/NativeChatStructuredQuestionCard.test.tsx b/src/renderer/src/components/native-chat/NativeChatStructuredQuestionCard.test.tsx
index 9404c25c30a5..f06d01f6a2ef 100644
--- a/src/renderer/src/components/native-chat/NativeChatStructuredQuestionCard.test.tsx
+++ b/src/renderer/src/components/native-chat/NativeChatStructuredQuestionCard.test.tsx
@@ -17,15 +17,16 @@ afterEach(() => {
container.remove()
})
-function render(question: AgentJournalQuestion) {
+function render(question: AgentJournalQuestion | AgentJournalQuestion[], declineOptionId?: string) {
const onAnswer = vi.fn()
const onCancel = vi.fn()
act(() =>
root.render(