import React from "react"; import { Summary } from "../types"; import { formatDate } from "../utils/formatters"; interface SummaryCardProps { summary: Summary; } export function SummaryCard({ summary }: SummaryCardProps) { const date = formatDate(summary.created_at_epoch); const sections = [ { key: "investigated", label: "Investigated", content: summary.investigated, icon: "/icon-thick-investigated.svg" }, { key: "learned", label: "Learned", content: summary.learned, icon: "/icon-thick-learned.svg" }, { key: "completed", label: "Completed", content: summary.completed, icon: "/icon-thick-completed.svg" }, { key: "next_steps", label: "Next Steps", content: summary.next_steps, icon: "/icon-thick-next-steps.svg" }, ].filter((section) => section.content); return (
Session Summary {summary.platform_source || 'claude'} {summary.project}
{summary.request && (

{summary.request}

)}
{sections.map((section, index) => (
{section.label}

{section.label}

{section.content}
))}
); }