setSearchQuery(e.target.value)}
className="flex-1 min-w-[200px] px-4 py-2 rounded-xl border"
style={{
backgroundColor: 'var(--bg-secondary)',
borderColor: 'var(--border)',
color: 'var(--text-primary)'
}}
/>
{/* Results Summary */}
{pagination.total} cards in {VOCAB.MY_COLLECTION}
{selectedCards.length > 0 && (
{selectedCards.length} cards selected
)}
{/* Bulk Selection Toolbar */}
{selectedCards.length > 0 && (
{
setCardsToAdd(selectedCards);
setShowCollectionModal(true);
}}
onClearSelection={() => setSelectedCards([])}
/>
)}
{/* Cards Grid */}
{cards.map((card) => (
{
setSelectedCards(prev =>
prev.includes(cardId)
? prev.filter(id => id !== cardId)
: [...prev, cardId]
);
}}
onFavorite={(cardId) => {
handleFavoriteToggle(cardId);
}}
/>
))}
{/* Loading More */}
{loadingMore && (
)}
{/* Infinite Scroll Sentinel */}
{hasMore && }
{/* No More Cards */}
{!hasMore && cards.length > 0 && (
You've reached the end of your collection!
)}
{/* No Cards Found */}
{cards.length === 0 && !loading && (
No cards in {VOCAB.MY_COLLECTION}
{searchQuery ? 'Try adjusting your search filters' : 'Start building your collection by browsing available cards'}
)}
{/* Collection Selection Modal */}