'use client'; import { motion } from 'framer-motion'; import { CheckCircle2, Cpu, HardDrive, Zap, AlertCircle, ArrowRight } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardFooter, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { useHardware } from '@/hooks/use-hardware'; import { cn } from '@/lib/utils'; // Componente Skeleton simples para loading function Skeleton({ className }: { className?: string }) { return (
); } interface SystemCheckStepProps { onNext: () => void; } export function SystemCheckStep({ onNext }: SystemCheckStepProps) { const { specs, loading } = useHardware(); const status = loading ? 'checking' : (specs ? 'success' : 'error'); const ramGB = specs ? (specs.total_memory / (1024 * 1024 * 1024)).toFixed(1) : 0; const isCompatible = specs ? specs.total_memory >= 4 * 1024 * 1024 * 1024 : false; // Mínimo 4GB return (Memória RAM
Mínimo recomendado: 16GB
Processador
Alta capacidade de threads
Escaneando componentes...
)} {status === 'success' && (