/* "Ollama: Connected — qwen2.5:3b-instruct", or the reason it is not.
*
* `BROWSER-UX-SPEC.md` §44. It is a status line, not a control: the only thing
* it does is link to the place the problem is fixed. Rendered as a ``
* rather than a button because it navigates, which is what a screen reader
* should be told it does.
*/
import { Link } from 'react-router-dom'
import { blocksPlay, statusLabel, useModelStatus } from './modelStatus'
export function ModelStatusBadge({ compact = false }) {
const { status, model, endpoint } = useModelStatus()
const bad = blocksPlay(status)
const label = statusLabel(status)
return (
{label}
{!compact && status === 'ready' && model && (
{model}
)}
)
}