"use client"; import type { HardwareProfile } from "@/lib/modelfit"; function Badge({ label, ok }: { label: string; ok: boolean }) { return ( {label} ); } function Row({ label, value }: { label: string; value: React.ReactNode }) { return (
{label} {value}
); } export function HardwareCard({ hw }: { hw: HardwareProfile }) { return (

Hardware Profile

{hw.os.name}
{hw.gpus.length === 0 ? ( none detected} /> ) : ( hw.gpus.map((gpu, i) => ( 1 ? `GPU ${i}` : "GPU"} value={ {gpu.name} 0} /> } /> )) )} {hw.gpus.length > 1 && ( {hw.total_vram_gb} GB} /> )}
{hw.warnings.length > 0 && ( )}
); }