import { AIModelCard } from './AIConfigCard'; import { ModelOption } from '../helpers'; interface ModelSelectionGridProps { models: ModelOption[]; selectedModelId: string; onSelectModel: (modelId: string) => void; configuredModelIds: string[]; } export function ModelSelectionGrid({ models, selectedModelId, onSelectModel, configuredModelIds, }: ModelSelectionGridProps) { if (!models.length) { return (

No models match the selected filters.

Try adjusting your input/output modality filters.

); } return (
{models.map((model) => { const isConfigured = configuredModelIds.includes(model.modelId); const isSelected = selectedModelId === model.modelId; return ( !isConfigured && onSelectModel(model.modelId)} /> ); })}
); }