{/* Search Bar */}
setSearchKeyword(e.target.value)}
className='pl-9'
/>
{/* Tabs for New vs Existing vs Removed */}
0
? 'new'
: removedModels.length > 0
? 'removed'
: 'existing'
}
>
0 ? 'grid-cols-3' : 'grid-cols-2'}`}
>
{t('New Models ({{count}})', { count: newModels.length })}
{t('Existing Models ({{count}})', {
count: existingFilteredModels.length,
})}
{removedModels.length > 0 && (
{t('Removed Models ({{count}})', {
count: removedModels.length,
})}
)}
{getSortedCategoryEntries(newModelsByCategory).map(
([category, models]) =>
renderModelCategory(category, models)
)}
{getSortedCategoryEntries(existingModelsByCategory).map(
([category, models]) =>
renderModelCategory(category, models)
)}
{removedModels.length > 0 && (
{t(
'These models are still in your selection but were not returned by the upstream listing. Entries that are only model_mapping source aliases are omitted. Toggle to adjust before saving.'
)}
{renderModelCategory(t('Removed'), removedModels)}
)}
{/* Selection Summary */}
{t('{{n}} model(s) selected', { n: selectedModels.length })}