import { useState } from 'react' const PROVIDER_ICONS = { groq: '⚡', google: '🌐', mistral: '💫', huggingface: '🤗', nvidia: '◆', openrouter: '🔀', } const PROVIDER_SUBS = { groq: 'LPU Inference', google: 'Gemini Flash', mistral: 'European AI', huggingface: 'Open-weight', nvidia: 'NIM Endpoints', openrouter: 'Unified gateway', } export default function ModelPicker({ registry, currentProvider, currentModel, onSelect, onClose }) { const [activeProv, setActiveProv] = useState(currentProvider) const providers = Object.keys(registry) const currentModels = registry[activeProv]?.models || [] return (