Files
Jyotisha/frontend/src/components/conversation-follow-ups.tsx
T
Jesse_ChenandCursor 59559d4b24 fix(web): persist thinking, title sessions distinctly, and send follow-ups from the answer
Thinking disappeared on failure and never reached session storage. Keep the
sanitized chain on disk and on errors, and regroup the sidebar around reports,
charts, favorites, and dated history titles.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 09:10:47 +08:00

29 lines
642 B
TypeScript

"use client";
export function ConversationFollowUps({
questions,
disabled = false,
onSelect,
}: Readonly<{
questions: readonly string[];
disabled?: boolean;
onSelect: (question: string) => void;
}>) {
if (questions.length === 0) return null;
return (
<div className="conversation-follow-ups" aria-label="可以继续问">
{questions.map((question) => (
<button
key={question}
className="conversation-follow-up"
type="button"
disabled={disabled}
onClick={() => onSelect(question)}
>
{question}
</button>
))}
</div>
);
}