import type { AnalysisResponse } from '@ftb/shared'; import { AnalysisChart } from './AnalysisChart'; import { AnalysisReport } from './AnalysisReport'; import { FollowUpActions } from './FollowUpActions'; import { InsightCard } from './InsightCard'; export function AnalysisResultBlock({ response, onAsk, }: { response: AnalysisResponse; onAsk: (prompt: string) => void; }) { if (!response.ok) { return (

{response.message}

{response.clarificationOptions && (
{response.clarificationOptions.map((option) => ( ))}
)}
); } return (
); }