'use client' import { useState } from 'react' import { CheckIcon, ChevronIcon, WarningIcon, XIcon } from '@/components/ui/icons' import type { TextureDiagnosticReport } from '@/lib/client-types' interface TextureDiagnosticsPanelProps { report?: TextureDiagnosticReport } const idleReport: TextureDiagnosticReport = { status: 'idle', summary: 'Deposez un dossier pour analyser les textures du model.gltf.', issues: [], } const statusStyles = { idle: { icon: , label: 'En attente', tone: 'border-white/15 bg-white/5 text-gray-400', }, ok: { icon: , label: 'OK', tone: 'border-green-500/30 bg-green-500/10 text-green-300', }, warning: { icon: , label: 'A verifier', tone: 'border-yellow-500/30 bg-yellow-500/10 text-yellow-300', }, error: { icon: , label: 'Probleme', tone: 'border-red-500/30 bg-red-500/10 text-red-300', }, } const issueStyles = { error: 'border-red-500/25 bg-red-500/10 text-red-200', warning: 'border-yellow-500/25 bg-yellow-500/10 text-yellow-200', } export default function TextureDiagnosticsPanel({ report, }: TextureDiagnosticsPanelProps) { const currentReport = report || idleReport const style = statusStyles[currentReport.status] const [isOpen, setIsOpen] = useState(true) return ( ) }