import { RefreshCw, FileText } from "lucide-react" import { cn } from "@/lib/utils" // Präsentations-Atome des SystemDrawers (Review P2-14: aus dem 934-Z-Monolithen extrahiert). // systemd-Units (restart/logs) + reach = Stichwort zum Mappen auf /api/system/services. export const SERVICES = [ { id: "mission-control-2", label: "Mission Control", type: "user", reach: "gateway (integr" }, { id: "hermes-gateway", label: "Hermes Gateway", type: "user", reach: "hermes-gateway" }, { id: "mem0-service", label: "Mem0 (Gedächtnis)", type: "user", reach: "mem0" }, { id: "hermes-terminal", label: "Hermes Terminal", type: "user", reach: "hermes-terminal" }, { id: "llama-swap", label: "Llama Swap", type: "system", reach: "llama-swap" }, ] export function UpdateRow({ icon: Icon, iconClass, name, status, available, busy, actionLabel, onAction }: { icon: any; iconClass: string; name: string; status: string; available: boolean; busy?: boolean; actionLabel: string; onAction: () => void }) { return (
{name}
{status}
) } export function ServiceRow({ label, ok, system, busy, onRestart, onLogs }: { label: string; ok?: boolean; system?: boolean; busy?: boolean; onRestart: () => void; onLogs: () => void }) { return (
{label}{system && (root)}
) } export function formatBytes(bytes?: number) { if (bytes == null) return "" if (bytes > 1024 ** 3) return `${(bytes / 1024 ** 3).toFixed(2)} GB` return `${(bytes / 1024 ** 2).toFixed(1)} MB` }