import { Copy, Download } from "lucide-react"; function downloadTextFile(filename, content) { const blob = new Blob([content], { type: "text/plain;charset=utf-8" }); const url = URL.createObjectURL(blob); const link = document.createElement("a"); link.href = url; link.download = filename; document.body.appendChild(link); link.click(); link.remove(); URL.revokeObjectURL(url); } export default function SummaryCard({ title, content, accent = "from-slate-900 to-indigo-700", meta = null }) { const safeContent = content || "Run the model to generate a summary."; return (
Generated Model Output

{title.replace("Output ยท ", "")}

{content ? safeContent.split(/\s+/).filter(Boolean).length : 0} words
{meta ?
{meta}
: null}

{safeContent}

); }