import React from "react"; import type { HardwareInfo, ModelRecommendation } from "@/lib/tauriCommands"; import { Badge, Progress } from "@/components/ui"; import { Cpu, HardDrive, Monitor } from "lucide-react"; interface HardwareReportProps { hardware: HardwareInfo | null; recommendations: ModelRecommendation[]; } export function HardwareReport({ hardware, recommendations }: HardwareReportProps) { if (!hardware) { return (
CPU
RAM
{hardware.total_ram_gb.toFixed(1)} GB / {maxRamDisplay} GB
GPU
{hardware.gpu_vendor ? ( <>{hardware.gpu_vendor}
{hardware.gpu_vram_gb && ({hardware.gpu_vram_gb} GB VRAM
)} > ) : (No GPU detected
)}{rec.name}
{rec.size} | Min RAM: {rec.min_ram_gb} GB
{rec.description}