import { FileText, ArrowUpRight } from 'lucide-react'; interface FileCardProps { title: string; content: string; onClick: () => void; } export default function FileCard({ title, content, onClick }: FileCardProps) { // Extract a short preview (first 3 lines or 150 chars) const preview = content.slice(0, 150).split('\n').slice(0, 3).join('\n') + (content.length > 150 ? '...' : ''); return (

{title}

{preview}

); }