Select Study Materials
Choose the source documents to generate AI questions from.
{materials.length} Selected
{filtered.map((mat) => {
const isSelected = materials.includes(mat.id);
return (
toggleMaterial(mat.id)}
className={cn(
"flex items-center gap-4 p-4 rounded-xl cursor-pointer transition-all duration-300 border hover:shadow-md group",
isSelected
? "bg-blue-50/50 dark:bg-[#4F7CFF]/5 border-[#4F7CFF] shadow-[0_4px_15px_rgba(79,124,255,0.1)]"
: "bg-white dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600"
)}
>
{getIcon(mat.type)}
{mat.name}
Added {mat.date}
{mat.type}
{mat.tags.map(tag => (
{tag}
))}
);
})}
{filtered.length === 0 && (
No materials found matching your search.
)}
);
};