| import { NavLink } from 'react-router-dom'
|
|
|
|
|
|
|
|
|
|
|
| export function ModelsTabs() {
|
| const tab = (isActive: boolean) =>
|
| `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 (
|
| <div className="inline-flex gap-1 rounded-xl border p-1">
|
| <NavLink to="/models/chat" className={({ isActive }) => tab(isActive)}>Chat models</NavLink>
|
| <NavLink to="/models/embeddings" className={({ isActive }) => tab(isActive)}>Embeddings</NavLink>
|
| </div>
|
| )
|
| }
|
|
|