import { Loader2 } from "lucide-react"; import { useLLM } from "../hooks/useLLM"; export function StatusBar() { const { status, tps, isGenerating } = useLLM(); if (status.state === "loading") { return (

{status.message ?? "Loading model…"}

{status.progress != null && (
)}
); } if (status.state === "error") { return (
Error loading model: {status.error}
); } if (isGenerating && tps > 0) { return (
{tps} tokens/s
); } return null; }