import React, { useEffect, useState } from "react"; import { AlertCircle, Circle } from "react-feather"; import System from "../../models/system"; export default function LLMStatus() { const [status, setStatus] = useState(null); useEffect(() => { async function checkPing() { setStatus(await System.ping()); } checkPing(); }, []); if (status === null) { return (

LLM

unknown

); } // TODO: add modal or toast on click to identify why this is broken // need to likely start server. if (status === false) { return (

LLM

offline

); } return (

LLM

online

); }