import { NavLink } from 'react-router-dom' import { useI18n } from '@/i18n' // Segmented Chat | Embeddings | Fusion switcher shared by the Models pages. // Industry-standard layout: one "Models" section, modality as a tab — chat // routing (cross-model fallback), embeddings routing (same-model, // cross-provider fallback), and fusion (multi-model synthesis) are different // machines behind one roof. export function ModelsTabs() { const { t } = useI18n() const tab = (isActive: boolean) => `inline-flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-lg transition-colors ${ isActive ? 'bg-foreground text-background font-medium' : 'text-muted-foreground hover:text-foreground hover:bg-muted' }` return (