import { FileText, Trash2, Calendar } from 'lucide-react'; interface HistoryItem { id: string; date: string; transcription: string; // This might be raw text or path? summary: string; subject?: string; filename?: string; } interface HistoryViewProps { history: HistoryItem[]; onLoad: (item: HistoryItem) => void; onDelete: (id: string) => void; } export default function HistoryView({ history, onLoad, onDelete }: HistoryViewProps) { return (

Recording History

{history.length === 0 ? (

No history found.

) : (
{history.map(item => (
onLoad(item)} >

{item.subject || "Untitled Recording"}

{item.date} {item.filename && {item.filename}}

{item.summary ? item.summary.substring(0, 150) + "..." : "No summary available."}

))}
)}
); }