import { Check, ExternalLink, Hash, Quote } from 'lucide-react';
export default function ThreadList({ threads, selectedIds, onSelect }) {
return (
{threads.map((thread) => {
const isSelected = selectedIds.includes(thread.id);
return (
onSelect(thread.id)}
className={`
relative p-5 rounded-xl border transition-all duration-200 cursor-pointer group
${isSelected
? 'bg-blue-900/20 border-blue-500/50 shadow-[0_0_15px_rgba(59,130,246,0.15)]'
: 'bg-slate-800 border-slate-700 hover:border-slate-500 hover:bg-slate-750'}
`}
>
{/* Selection Indicator */}
{isSelected && }
{thread.title}
{thread.date}
{thread.citations} Citations
View Thread
);
})}
);
}