import { useMemo } from 'react' import { useAppStore } from '@/store/appStore' import { copyToClipboard, downloadJSON } from '@/lib/utils' import { Copy, Download, Printer } from 'lucide-react' export function ResultsSummary() { const run = useAppStore((s) => s.runs.find((r) => r.id === s.currentRunId)) const report = run?.report const summary = useMemo(() => report?.call_summary ?? '', [report]) if (!report) return null function onCopy() { copyToClipboard(summary) } function onDownload() { downloadJSON(report) } function onPrint() { window.print() } return (

Executive Summary

{summary}

{report.action_items?.length > 0 && (

Action Items

)}
) }