import { KvList } from "./KvList"; function formatNumber(value, digits = 3) { return Number(value ?? 0).toFixed(digits); } function formatEndpoint(endpoint) { const backend = endpoint?.backend || "none"; const device = endpoint?.device ? ` ${endpoint.device}` : ""; return `${backend}${device}`; } function formatVideoMode(endpoint) { const resolution = endpoint?.resolution || "Unknown"; const frameRate = endpoint?.frameRate ? ` ${endpoint.frameRate}` : ""; return `${resolution}${frameRate}`; } export function StatusPanels({ app, performance, runtime, video, videoOutput }) { const budgetUsedPercent = Math.max(0, Math.min(100, Number(performance.budgetUsedPercent) || 0)); const outputEnabled = Boolean(videoOutput?.enabled); return ( <>
{runtime.compileMessage || "No compiler output."}